Skip to content

Commit

Permalink
Update shark_benchmark_runner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet authored Aug 14, 2023
1 parent 910e256 commit c8479e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions shark/shark_benchmark_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ def benchmark_torch(self, modelname, device="cpu"):
else:
frontend_model.cpu()
input.cpu()
# TODO: re-enable as soon as pytorch CUDA context issues are resolved
# try:
# frontend_model = torch.compile(
# frontend_model, mode="max-autotune", backend="inductor"
# )
# except RuntimeError:
# frontend_model = HFmodel.model

for i in range(shark_args.num_warmup_iterations):
frontend_model.forward(input)
Expand Down

0 comments on commit c8479e4

Please sign in to comment.