Skip to content

Commit

Permalink
clear grads
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya2698 committed Dec 11, 2024
1 parent ff1373f commit 57010be
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion benchmarks/python/test_dropout_layernorm_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ def test_dropout_layernorm_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=dropout_layernorm_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_dropout_rmsnorm_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@ def test_dropout_rmsnorm_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=dropout_rmsnorm_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_gelu_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ def test_gelu_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=gelu_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_huggingface_attn_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ def test_huggingface_attn_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=huggingface_attn_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_layernorm_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ def test_layernorm_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=layernorm_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_nanogpt_attn_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,6 @@ def test_nanogpt_attn_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=nanogpt_attn_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_rmsnorm_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ def test_rmsnorm_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=rmsnorm_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_scale_bias_relu_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ def test_sbr_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=sbr_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_silu_mul_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ def test_silu_mul_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=silu_mul_bwd_iobytes(size, dtype),
)
2 changes: 1 addition & 1 deletion benchmarks/python/test_softmax_bwd.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ def test_softmax_bwd_baseline_benchmark(
run_benchmark(
benchmark,
unary_bwd_torch,
[outputs, grads],
[outputs, grads, *fwd_inputs],
iobytes=softmax_bwd_iobytes(size, dtype),
)

0 comments on commit 57010be

Please sign in to comment.