Skip to content

Commit

Permalink
disable cuda graph for output allocator mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zewenli98 committed Feb 14, 2025
1 parent 8ef1a87 commit d55c451
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ def run_cuda_graph() -> torch.Tensor | Tuple[torch.Tensor, ...]:
return outputs

def run_output_allocator() -> torch.Tensor | Tuple[torch.Tensor, ...]:
torch_tensorrt.runtime.set_cudagraphs_mode(False)
with (
torch.autograd.profiler.record_function(
"PythonTorchTensorRTModule:ProcessInputs"
Expand Down

0 comments on commit d55c451

Please sign in to comment.