Skip to content

Commit

Permalink
fix linting and other unit test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed Mar 20, 2024
1 parent b7e70f1 commit 49e8fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/aggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void ApplyWithLabels(Context const*, MetaInfo const& info, HostDeviceVector<T>*
// information only available on rank 0
if (collective::GetRank() == 0) {
std::vector<double> vector_gh;
for (int i = 0; i < size; i++) {
for (std::size_t i = 0; i < size; i++) {
auto gpair = result->HostVector()[i];
// cast from GradientPair to float pointer
auto gpair_ptr = reinterpret_cast<float*>(&gpair);
Expand Down

0 comments on commit 49e8fd6

Please sign in to comment.