Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed May 15, 2024
1 parent a6ba2c1 commit 0305dcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/benchmark_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ def _is_available(self, experiment_config):
cfg_accelerator = experiment_config["accelerator"]
cfg_xla = experiment_config["xla"]
cfg_test = experiment_config["test"]
cfg_torch_xla2 = experiment_config["torch_xla2"]

# Check that dynamo refers to an existing backend.
if cfg_dynamo is not None and cfg_dynamo not in dynamo.list_backends(
exclude_tags=()):
return False

# torch_xla2 doesn't support dynamo at this time.
if cfg_dynamo is not None and self._args.torch_xla2:
if cfg_dynamo is not None and cfg_torch_xla2:
return False

# Check dynamo backend-specifics constraints.
Expand Down

0 comments on commit 0305dcf

Please sign in to comment.