Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
  • Loading branch information
ezyang committed Jul 19, 2021
1 parent d82e28a commit ef19382
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions c10/cuda/CUDACachingAllocator.cpp
Expand Up @@ -1169,8 +1169,7 @@ class DeviceCachingAllocator {

StatTypes stat_types;
stat_types[static_cast<size_t>(StatType::AGGREGATE)] = true;
stat_types[static_cast<size_t>(get_stat_type_for_pool(*pool))] =
true;
stat_types[static_cast<size_t>(get_stat_type_for_pool(*pool))] = true;
update_stat_array(stats.segment, -1, stat_types);
update_stat_array(stats.reserved_bytes, -block->size, stat_types);
if (block->size >= CachingAllocatorConfig::max_split_size())
Expand Down

0 comments on commit ef19382

Please sign in to comment.