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
a5054f77
"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "742d72f8bb051105484fd5cca11620493ffb0b2b"
Unverified
Commit
a5054f77
authored
Jul 05, 2024
by
Hoang Gia Minh
Committed by
GitHub
Jul 05, 2024
Browse files
[C++] Remove template parameters from constructors (#6514)
parent
3e6156a1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
src/io/dense_bin.hpp
src/io/dense_bin.hpp
+1
-1
src/io/multi_val_dense_bin.hpp
src/io/multi_val_dense_bin.hpp
+1
-1
src/io/multi_val_sparse_bin.hpp
src/io/multi_val_sparse_bin.hpp
+1
-2
src/io/sparse_bin.hpp
src/io/sparse_bin.hpp
+1
-1
No files found.
src/io/dense_bin.hpp
View file @
a5054f77
...
@@ -614,7 +614,7 @@ class DenseBin : public Bin {
...
@@ -614,7 +614,7 @@ class DenseBin : public Bin {
#endif
#endif
std
::
vector
<
uint8_t
>
buf_
;
std
::
vector
<
uint8_t
>
buf_
;
DenseBin
<
VAL_T
,
IS_4BIT
>
(
const
DenseBin
<
VAL_T
,
IS_4BIT
>&
other
)
DenseBin
(
const
DenseBin
<
VAL_T
,
IS_4BIT
>&
other
)
:
num_data_
(
other
.
num_data_
),
data_
(
other
.
data_
)
{}
:
num_data_
(
other
.
num_data_
),
data_
(
other
.
data_
)
{}
};
};
...
...
src/io/multi_val_dense_bin.hpp
View file @
a5054f77
...
@@ -343,7 +343,7 @@ class MultiValDenseBin : public MultiValBin {
...
@@ -343,7 +343,7 @@ class MultiValDenseBin : public MultiValBin {
std
::
vector
<
uint32_t
>
offsets_
;
std
::
vector
<
uint32_t
>
offsets_
;
std
::
vector
<
VAL_T
,
Common
::
AlignmentAllocator
<
VAL_T
,
32
>>
data_
;
std
::
vector
<
VAL_T
,
Common
::
AlignmentAllocator
<
VAL_T
,
32
>>
data_
;
MultiValDenseBin
<
VAL_T
>
(
const
MultiValDenseBin
<
VAL_T
>&
other
)
MultiValDenseBin
(
const
MultiValDenseBin
<
VAL_T
>&
other
)
:
num_data_
(
other
.
num_data_
),
num_bin_
(
other
.
num_bin_
),
num_feature_
(
other
.
num_feature_
),
:
num_data_
(
other
.
num_data_
),
num_bin_
(
other
.
num_bin_
),
num_feature_
(
other
.
num_feature_
),
offsets_
(
other
.
offsets_
),
data_
(
other
.
data_
)
{
offsets_
(
other
.
offsets_
),
data_
(
other
.
data_
)
{
}
}
...
...
src/io/multi_val_sparse_bin.hpp
View file @
a5054f77
...
@@ -430,8 +430,7 @@ class MultiValSparseBin : public MultiValBin {
...
@@ -430,8 +430,7 @@ class MultiValSparseBin : public MultiValBin {
std
::
vector
<
INDEX_T
>
t_size_
;
std
::
vector
<
INDEX_T
>
t_size_
;
std
::
vector
<
uint32_t
>
offsets_
;
std
::
vector
<
uint32_t
>
offsets_
;
MultiValSparseBin
<
INDEX_T
,
VAL_T
>
(
MultiValSparseBin
(
const
MultiValSparseBin
<
INDEX_T
,
VAL_T
>&
other
)
const
MultiValSparseBin
<
INDEX_T
,
VAL_T
>&
other
)
:
num_data_
(
other
.
num_data_
),
:
num_data_
(
other
.
num_data_
),
num_bin_
(
other
.
num_bin_
),
num_bin_
(
other
.
num_bin_
),
estimate_element_per_row_
(
other
.
estimate_element_per_row_
),
estimate_element_per_row_
(
other
.
estimate_element_per_row_
),
...
...
src/io/sparse_bin.hpp
View file @
a5054f77
...
@@ -782,7 +782,7 @@ class SparseBin : public Bin {
...
@@ -782,7 +782,7 @@ class SparseBin : public Bin {
SparseBin
<
VAL_T
>*
Clone
()
override
;
SparseBin
<
VAL_T
>*
Clone
()
override
;
SparseBin
<
VAL_T
>
(
const
SparseBin
<
VAL_T
>&
other
)
SparseBin
(
const
SparseBin
<
VAL_T
>&
other
)
:
num_data_
(
other
.
num_data_
),
:
num_data_
(
other
.
num_data_
),
deltas_
(
other
.
deltas_
),
deltas_
(
other
.
deltas_
),
vals_
(
other
.
vals_
),
vals_
(
other
.
vals_
),
...
...
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