Skip to content

Commit

Permalink
Revert "Disambiguate benchmarks directory search. (#6434)" (#6440)
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore authored Feb 1, 2024
1 parent 599b925 commit bc4fee2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions benchmarks/torchbench_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ def get_skip_data(self):
its lists of models into sets of models.
"""

benchmarks_dir = self._find_near_file(("benchmarks/dynamo",))
benchmarks_dir = self._find_near_file(("benchmarks",))
assert benchmarks_dir is not None, "PyTorch benchmarks folder not found."

skip_file = os.path.join(benchmarks_dir, "torchbench_skip_models.yaml")
skip_file = os.path.join(benchmarks_dir, "dynamo",
"torchbench_skip_models.yaml")
with open(skip_file) as f:
data = yaml.safe_load(f)

Expand Down

0 comments on commit bc4fee2

Please sign in to comment.