Skip to content

Commit eec8612

Browse files
xuzhao9facebook-github-bot
authored andcommitted
Test backward pass in unit test.
Summary: In unit test, run both forward and backward pass. If the backward pass throws `NotImplementedError`, skip the test since the operator does not support backward pass. Reviewed By: int3 Differential Revision: D64471087 fbshipit-source-id: c9d0c43544314fc11305f271e8e80f7ba07b2675
1 parent 384a43d commit eec8612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchbenchmark/util/triton_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class BenchmarkOperator(metaclass=PostInitProcessor):
491491
_input_iter: Optional[Generator] = None
492492
extra_args: List[str] = []
493493
example_inputs: Any = None
494-
use_cuda_graphs: bool = True
494+
use_cuda_graphs: bool = False
495495

496496
"""
497497
A base class for adding operators to torch benchmark.

0 commit comments

Comments
 (0)