You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function keras.ops.expand_dims(x, axis=(0, -1)) does not work with Tensorflow backend if more than one axis to expand along is defined. It raises InvalidArgumentError: 'dim' must be a tensor with a single value [Op:ExpandDims]. I guess it internally calls the function tensorflow.expand_dims() which only supports a single axis at a time. JAX backend works fine, Pytorch I did not try.
The text was updated successfully, but these errors were encountered:
Referring to @james77777778 comment could you please confirm woth what Keras version you have tested? Please try with latest version and still problem persists let us know with repro code snippet. Thanks!
The function
keras.ops.expand_dims(x, axis=(0, -1))
does not work with Tensorflow backend if more than one axis to expand along is defined. It raisesInvalidArgumentError: 'dim' must be a tensor with a single value [Op:ExpandDims]
. I guess it internally calls the functiontensorflow.expand_dims()
which only supports a single axis at a time. JAX backend works fine, Pytorch I did not try.The text was updated successfully, but these errors were encountered: