Skip to content

Commit

Permalink
import torch._functorch.config
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Dec 9, 2024
1 parent 20b138d commit 5217014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tritonbench/utils/triton_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def __init__(
self.mode = Mode.BWD
if self.mode in [Mode.FWD_BWD, Mode.BWD]:
# TODO: remove this once we have a better way to handle backward benchmarking
import torch._functorch.config
torch._functorch.config.donated_buffer = False
self.device = tb_args.device
self.required_metrics = (
Expand Down

0 comments on commit 5217014

Please sign in to comment.