Skip to content

Commit

Permalink
Add to torchbench relative path search (#134871)
Browse files Browse the repository at this point in the history
Summary:
Add to relative path search in benchmark. This enables user to run `torchbench.py` inside the `pytorch/benchmark/dynamo` folder when `torchbench` repo is cloned in the same level as `pytorch`

X-link: pytorch/pytorch#134871
Approved by: https://github.com/FindHao

Reviewed By: kit1980

Differential Revision: D62163655

Pulled By: yiming0416

fbshipit-source-id: dbfe2fdd45a28f2e1de41af84da0809db9cd6cd1
  • Loading branch information
yiming0416 authored and facebook-github-bot committed Sep 4, 2024
1 parent fdb3310 commit 2927a2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions userbenchmark/dynamo/dynamobench/torchbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def setup_torchbench_cwd():
"../../torchbenchmark",
"../../torchbench",
"../../benchmark",
"../../../torchbenchmark",
"../../../torchbench",
"../../../benchmark",
):
if exists(torchbench_dir):
break
Expand Down

0 comments on commit 2927a2b

Please sign in to comment.