Remove unused variables. (#9210)

- remove used variables.
- Remove signed comparison warnings.
This commit is contained in:
Jiaming Yuan
2023-05-28 05:24:15 +08:00
committed by GitHub
parent d563d6d8f4
commit 03bc6e6427
5 changed files with 5 additions and 7 deletions

View File

@@ -252,7 +252,7 @@ inline AllgatherVResult<T> AllgatherV(std::vector<T> const &inputs,
// Calculate input offsets (std::exclusive_scan).
std::vector<std::size_t> offsets(all_sizes.size());
for (auto i = 1; i < offsets.size(); i++) {
for (std::size_t i = 1; i < offsets.size(); i++) {
offsets[i] = offsets[i - 1] + all_sizes[i - 1];
}