Skip to content

Commit

Permalink
Fix the lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kulinseth committed May 31, 2022
1 parent 347c756 commit 822491e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aten/src/ATen/native/mps/operations/RangeFactories.mm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
if (result.numel() != steps) {
result.resize_({steps});
}

auto ns_steps = [NSNumber numberWithInt:steps];

if (steps == 0) {
Expand All @@ -87,7 +86,7 @@
result.fill_(start);
} else {
Tensor r = result.is_contiguous() ? result : result.contiguous();

// Do the MPSGraph computation
MPSGraphCache* cache_ = MPSGraphCache::getInstance();
MPSStream* stream = getCurrentMPSStream();
Expand Down

0 comments on commit 822491e

Please sign in to comment.