tensorflow-deep-learning
tensorflow-deep-learning copied to clipboard
07_food_vision_milestone_project_1.ipynb - In:29
So when I run cell 29 I get the following error. The GPU is "GPU 0: Tesla T4 (UUID: GPU-6b3d416d-69cc-a08d-bde3-f0e6c29fdd87)".
TypeError Traceback (most recent call last)
4 frames
/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs) 65 except Exception as e: # pylint: disable=broad-except 66 filtered_tb = _process_traceback_frames(e.traceback) ---> 67 raise e.with_traceback(filtered_tb) from None 68 finally: 69 del filtered_tb
TypeError: Exception encountered when calling layer "tf.math.truediv" (type TFOpLambda).
x
and y
must have the same dtype, got tf.float16 != tf.float32.
Call arguments received by layer "tf.math.truediv" (type TFOpLambda): • x=tf.Tensor(shape=(None, None, None, 3), dtype=float16) • y=tf.Tensor(shape=(3,), dtype=float32) • name=None
Downgrade your tensorflow
version to 2.7
. Restart your runtime it should fix this issue.
Downgrade your
tensorflow
version to2.7
. Restart your runtime it should fix this issue.
It worked! Thanks a bunch, it was driving me crazy
TensorFlow version 2.8
works as well!
Thank you for helping @SaketMunda and @Encode-0 !