Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
ed958eb2
Commit
ed958eb2
authored
Nov 01, 2016
by
Guolin Ke
Browse files
change some Warning to Fatal
parent
1c16df5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/io/metadata.cpp
src/io/metadata.cpp
+6
-6
src/network/socket_wrapper.hpp
src/network/socket_wrapper.hpp
+1
-1
No files found.
src/io/metadata.cpp
View file @
ed958eb2
...
...
@@ -106,7 +106,7 @@ void Metadata::CheckOrPartition(data_size_t num_all_data, const std::vector<data
}
// check weights
if
(
weights_
!=
nullptr
&&
num_weights_
!=
num_data_
)
{
Log
::
Error
(
"Initial weight size doesn't equal to data
, weights will be ignored
"
);
Log
::
Fatal
(
"Initial weight size doesn't equal to data"
);
delete
[]
weights_
;
num_weights_
=
0
;
weights_
=
nullptr
;
...
...
@@ -114,7 +114,7 @@ void Metadata::CheckOrPartition(data_size_t num_all_data, const std::vector<data
// check query boundries
if
(
query_boundaries_
!=
nullptr
&&
query_boundaries_
[
num_queries_
]
!=
num_data_
)
{
Log
::
Error
(
"Initial query size doesn't equal to data
, queies will be ignored
"
);
Log
::
Fatal
(
"Initial query size doesn't equal to data"
);
delete
[]
query_boundaries_
;
num_queries_
=
0
;
query_boundaries_
=
nullptr
;
...
...
@@ -123,7 +123,7 @@ void Metadata::CheckOrPartition(data_size_t num_all_data, const std::vector<data
// contain initial score file
if
(
init_score_
!=
nullptr
&&
num_init_score_
!=
num_data_
)
{
delete
[]
init_score_
;
Log
::
Error
(
"Initial score size doesn't equal to data
, score file will be ignored
"
);
Log
::
Fatal
(
"Initial score size doesn't equal to data"
);
init_score_
=
nullptr
;
num_init_score_
=
0
;
}
...
...
@@ -131,14 +131,14 @@ void Metadata::CheckOrPartition(data_size_t num_all_data, const std::vector<data
data_size_t
num_used_data
=
static_cast
<
data_size_t
>
(
used_data_indices
.
size
());
// check weights
if
(
weights_
!=
nullptr
&&
num_weights_
!=
num_all_data
)
{
Log
::
Error
(
"Initial weights size doesn't equal to data
, weights will be ignored
"
);
Log
::
Fatal
(
"Initial weights size doesn't equal to data"
);
delete
[]
weights_
;
num_weights_
=
0
;
weights_
=
nullptr
;
}
// check query boundries
if
(
query_boundaries_
!=
nullptr
&&
query_boundaries_
[
num_queries_
]
!=
num_all_data
)
{
Log
::
Error
(
"Initial query size doesn't equal to data
, queries will be ignored
"
);
Log
::
Fatal
(
"Initial query size doesn't equal to data"
);
delete
[]
query_boundaries_
;
num_queries_
=
0
;
query_boundaries_
=
nullptr
;
...
...
@@ -146,7 +146,7 @@ void Metadata::CheckOrPartition(data_size_t num_all_data, const std::vector<data
// contain initial score file
if
(
init_score_
!=
nullptr
&&
num_init_score_
!=
num_all_data
)
{
Log
::
Error
(
"Initial score size doesn't equal to data
, initial scores will be ignored
"
);
Log
::
Fatal
(
"Initial score size doesn't equal to data"
);
delete
[]
init_score_
;
num_init_score_
=
0
;
init_score_
=
nullptr
;
...
...
src/network/socket_wrapper.hpp
View file @
ed958eb2
...
...
@@ -155,7 +155,7 @@ public:
pAdapter
=
pAdapter
->
Next
;
}
}
else
{
Log
::
Error
(
"GetAdaptersinfo error: code %d "
,
dwRetVal
);
Log
::
Fatal
(
"GetAdaptersinfo error: code %d "
,
dwRetVal
);
}
if
(
pAdapterInfo
)
FREE
(
pAdapterInfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment