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
d541855a
Commit
d541855a
authored
Mar 27, 2017
by
Guolin Ke
Browse files
fix #362 .
parent
04ede377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/io/dense_nbits_bin.hpp
src/io/dense_nbits_bin.hpp
+2
-2
No files found.
src/io/dense_nbits_bin.hpp
View file @
d541855a
...
...
@@ -238,7 +238,7 @@ public:
}
if
(
rest
)
{
data_size_t
idx
=
local_used_indices
[
num_data_
-
1
];
data_
[
num_data_
/
2
+
1
]
=
(
mem_data
[
idx
>>
1
]
>>
((
idx
&
1
)
<<
2
))
&
0xf
;
data_
[
num_data_
>>
1
]
=
(
mem_data
[
idx
>>
1
]
>>
((
idx
&
1
)
<<
2
))
&
0xf
;
}
}
else
{
for
(
size_t
i
=
0
;
i
<
data_
.
size
();
++
i
)
{
...
...
@@ -260,7 +260,7 @@ public:
}
if
(
rest
)
{
data_size_t
idx
=
used_indices
[
num_used_indices
-
1
];
data_
[
num_used_indices
/
2
+
1
]
=
(
other_bin
->
data_
[
idx
>>
1
]
>>
((
idx
&
1
)
<<
2
))
&
0xf
;
data_
[
num_used_indices
>>
1
]
=
(
other_bin
->
data_
[
idx
>>
1
]
>>
((
idx
&
1
)
<<
2
))
&
0xf
;
}
}
...
...
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