-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Layer 'shifted_patch_tokenization_10' looks like it has unbuilt state, but Keras is not able to trace the layer call()
in order to build it automatically
#18763
Comments
This layer creates two child layers: self.projection = layers.Dense(units=projection_dim)
self.layer_norm = layers.LayerNormalization(epsilon=LAYER_NORM_EPS) Normally, the If you're able to call the layer eagerly, then maybe you just need to add a |
I am not getting this error in below code:
OR Only I am getting error when below line of code is getting called:
data augmentation is being done as below:
My suspect is something happening during data augmentation. May be shapes are getting changed because now I am getting different error:
|
So presumably a layer is creating variables based on |
This error disappeared after using newly released Keras 3.0.0 and tensorflow 2.15.0. So, I think we can close this issue. |
While working on converting the Train a Vision Transformer on small datasets keras.io example to keras 3 with TF backend, I found below issue:
I have tried with both
keras-core
andkeras-nightly
.They can be reproduced here:
Logging here as per #18468 and #18467.
Note: I also tried to debug by calling that layer on test input.
The text was updated successfully, but these errors were encountered: