Skip to content

Commit

Permalink
fix is_available
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Oct 23, 2024
1 parent f90fc52 commit 9b571d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tests/consistent/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_data_equal(self):
for backend_name in ("tensorflow", "pytorch", "dpmodel", "jax"):
with self.subTest(backend_name=backend_name):
backend = Backend.get_backend(backend_name)()
if not backend.is_available:
if not backend.is_available():
continue
reference_data = copy.deepcopy(self.data)
self.save_data_to_model(prefix + backend.suffixes[0], reference_data)
Expand Down Expand Up @@ -127,7 +127,7 @@ def test_deep_eval(self):
rets = []
for backend_name in ("tensorflow", "pytorch", "dpmodel"):
backend = Backend.get_backend(backend_name)()
if not backend.is_available:
if not backend.is_available():
continue
reference_data = copy.deepcopy(self.data)
self.save_data_to_model(prefix + backend.suffixes[0], reference_data)
Expand Down

0 comments on commit 9b571d1

Please sign in to comment.