We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf0da7 commit bb329d5Copy full SHA for bb329d5
keras/src/backend/tensorflow/numpy.py
@@ -2773,8 +2773,7 @@ def tile(x, repeats):
2773
x_shape_list = [1] * (len(repeats) - x_rank) + [d if d is not None else -1 for d in x.shape.as_list()]
2774
x = tf.reshape(x, x_shape_list)
2775
return tf.tile(x, repeats)
2776
- except Exception:
2777
- # If anything goes wrong, fall back to original implementation
+ except (AttributeError, TypeError, tf.errors.OperatorNotAllowedInGraphError):
2778
pass
2779
2780
# Original dynamic implementation for non-concrete repeats
0 commit comments