Skip to content

Commit

Permalink
Fix test that failed because of an upstream change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 584019513
  • Loading branch information
ursk authored and tensorflower-gardener committed Nov 20, 2023
1 parent e0ffe4b commit 5d09648
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _safe_concat(values):
for x in values:
try:
full_values.append(ps.reshape(x, reference_shape))
except (TypeError, ValueError):
except (TypeError, ValueError, ZeroDivisionError):
# JAX/numpy don't like `-1`'s in size-zero shapes.
full_values.append(ps.reshape(x, trivial_shape))
return ps.concat(full_values, axis=0)
Expand Down

0 comments on commit 5d09648

Please sign in to comment.