-
Notifications
You must be signed in to change notification settings - Fork 78
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
TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [float32, float16] that don't all match. #8
Comments
Hi! To help diagnose this issue, please share the following:
|
The code is attached below in VIT.zip |
Please provide a minimal code snippet, not an entire project. This will make it easier for the volunteer community to help. |
Oh Sorry for that, I will Try For that |
VIT.zip |
Dataset Link - https://storage.googleapis.com/mithil/cassava-leaf-disease-classification.zip |
Is it Ok ? |
A minimal code sample is typically no more than 10-20 lines of standalone code. Volunteer contributors and maintainers rarely have time to download datasets and set up projects like this. Please see other closed issues for examples of good minimal snippets like this one. |
Please Look at it |
This is the minimum code sample I could produce for the error to be replicated |
Please share the minimal code as an inline snippet in this issue instead of as a ZIP file. It is hard to comment on the contents of a ZIP file. |
Oh policy = mixed_precision.Policy('mixed_float16') (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train = tf.keras.utils.normalize(x_train, axis=1) |
Will this Work ? |
It may take time for someone to debug and work on making mixed precision function properly, but this should be enough to get started. For now, I suggest trying to work without mixed precision. |
even without mixed precision I am getting this error |
This code sample i have given works, But the code sample I shared earlier does not |
It is working now but mixed precision support will be awesome. |
Mixed precision support is now available thanks to https://github.com/Shiro-LK (see #11 (comment)). |
So thank You for this implementation of VIT in Tensorflow. But whenever I Try to use this I get the Error
TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [float32, float16] that don't all match.
I Have tried setting all the variables to float32 but that also does not work . Please help me , here is my code
`
`
VIT.zip
The text was updated successfully, but these errors were encountered: