Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Commit f595378

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/dietgpu/benchmark.py
Reviewed By: JuanBesa Differential Revision: D90011010 fbshipit-source-id: 924654f978dbcb04f970bf4a6743ecfbcc30ca8a
1 parent caf57b2 commit f595378

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dietgpu/benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_any_comp_timings(ts, num_runs=3):
9898
comp_size = 0
9999

100100
# ignore first run timings
101-
for i in range(1 + num_runs):
101+
for _ in range(1 + num_runs):
102102
start = torch.cuda.Event(enable_timing=True)
103103
end = torch.cuda.Event(enable_timing=True)
104104

@@ -168,7 +168,7 @@ def get_any_comp_timings(ts, num_runs=3):
168168

169169
# Batched
170170
ts = []
171-
for i in range(128):
171+
for _ in range(128):
172172
ts.append(torch.normal(0, 1.0, [512 * 1024], dtype=dt, device=dev))
173173

174174
c, dc, total_size, comp_size = get_float_comp_timings(ts)
@@ -206,7 +206,7 @@ def get_any_comp_timings(ts, num_runs=3):
206206

207207
# Batched
208208
ts = []
209-
for i in range(128):
209+
for _ in range(128):
210210
ts.append(torch.normal(0, 1.0, [512 * 1024], dtype=dt, device=dev))
211211

212212
c, dc, total_size, comp_size = get_any_comp_timings(ts)

0 commit comments

Comments
 (0)