Skip to content

Commit 82b5609

Browse files
hawkinsptensorflower-gardener
authored andcommitted
[NumPy] Fix test failures under NumPy 1.25.
PiperOrigin-RevId: 549474788
1 parent e130bbe commit 82b5609

File tree

1 file changed

+1
-1
lines changed
  • tensorflow_model_optimization/python/core/internal/tensor_encoding/testing

1 file changed

+1
-1
lines changed

tensorflow_model_optimization/python/core/internal/tensor_encoding/testing/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def evaluate_tf_py_list(self, fetches, session=None):
521521
for i, value in enumerate(eval_fetches):
522522
if isinstance(value, dict):
523523
eval_fetches[i] = py_utils.merge_dicts(value, py_fetches[i])
524-
elif value == placeholder_empty_tuple:
524+
elif isinstance(value, tuple) and value == placeholder_empty_tuple:
525525
eval_fetches[i] = py_fetches[i]
526526
return eval_fetches
527527

0 commit comments

Comments
 (0)