Skip to content

Commit

Permalink
Fix test modes
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Nov 18, 2024
1 parent 3b7dda0 commit 2133c0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tritonbench/utils/triton_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ def __init__(
self.use_cuda_graphs = (
self.tb_args.cudagraph if self.tb_args.cudagraph else self.use_cuda_graphs
)
# we accept both "fwd" and "eval"
_translate_mode(self.tb_args)
if self.tb_args.mode == "fwd":
self.mode = Mode.FWD
Expand All @@ -578,8 +577,8 @@ def __init__(
self.mode = Mode.FWD_NO_GRAD
else:
assert (
self.tb_args.mode == "bwd" or self.tb_args.bwd
), f"We only accept 3 test modes: fwd(eval), fwd_bwd(train), or bwd."
self.tb_args.mode == "bwd"
), "We only accept test modes: fwd, bwd, fwd_bwd, or fwd_no_grad."
self.mode = Mode.BWD
self.device = tb_args.device
self.required_metrics = (
Expand Down

0 comments on commit 2133c0a

Please sign in to comment.