Notebook 06: Error when saving model #568
Unanswered
PAndersson
asked this question in
Q&A
Replies: 3 comments
-
try saving it without optimizer |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to upgrade tensorflow to the 2.13 version or downgrade to 2.9. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @PAndersson . Try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to save the fine-tuned model to my Drive, I get an error:
model.save("drive/MyDrive/tensorflow_course/101_food_classes_10_percent_saved_big_dog_model")
WARNING :absl:Found untraced functions such as _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op, _jit_compiled_convolution_op while saving (showing 5 of 81). These functions will not be directly callable after loading.
TypeError Traceback (most recent call last)
in <cell line: 2>()
1 # Save our fine tuned model
----> 2 model.save("drive/MyDrive/tensorflow_course/101_food_classes_10_percent_saved_big_dog_model")
2 frames
/usr/lib/python3.10/json/encoder.py in iterencode(self, o, _one_shot)
255 self.key_separator, self.item_separator, self.sort_keys,
256 self.skipkeys, _one_shot)
--> 257 return _iterencode(o, 0)
258
259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
TypeError: Unable to serialize [2.0896919 2.1128857 2.1081853] to JSON. Unrecognized type <class 'tensorflow.python.framework.ops.EagerTensor'>.
What is going wrong?
Beta Was this translation helpful? Give feedback.
All reactions