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 de91758 commit a804a5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/benchmarks/test_benchmark_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
class BenchmarkExperimentTest(unittest.TestCase):

def test_to_dict(self):
be = BenchmarkExperiment("cpu", "PJRT", "some xla_flags", "openxla",
be = BenchmarkExperiment("cpu", "PJRT", "some xla_flags", "openxla", None,
"train", "123")
actual = be.to_dict()
self.assertEqual(7, len(actual))
self.assertEqual(8, len(actual))
self.assertEqual("cpu", actual["accelerator"])
self.assertTrue("accelerator_model" in actual)
self.assertEqual("PJRT", actual["xla"])
self.assertEqual("some xla_flags", actual["xla_flags"])
self.assertEqual("openxla", actual["dynamo"])
self.assertEqual(None, actual["torch_xla2"])
self.assertEqual("train", actual["test"])
self.assertEqual("123", actual["batch_size"])

Expand Down

0 comments on commit a804a5a

Please sign in to comment.