issue of conversion #64685
Labels
comp:lite
TF Lite related issues
stat:awaiting response
Status - Awaiting response from author
TFLiteConverter
For issues related to TFLite converter
Error :
Traceback (most recent call last):
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\engine\base_layer.py", line 868, in from_config
return cls(**config)
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\engine\input_layer.py", line 153, in init
raise ValueError(
ValueError: Unrecognized keyword arguments: ['batch_shape']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\jhave\OneDrive\Documents\mood-shift\model.py", line 6, in
keras_model = tf.keras.models.load_model('mood-shift.keras')
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\saving_api.py", line 254, in load_model
return saving_lib.load_model(
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\saving_lib.py", line 281, in load_model
raise e
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\saving_lib.py", line 246, in load_model
model = deserialize_keras_object(
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\serialization_lib.py", line 728, in deserialize_keras_object
instance = cls.from_config(inner_config)
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\engine\sequential.py", line 466, in from_config
layer = layer_module.deserialize(
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\layers\serialization.py", line 276, in deserialize
return serialization_lib.deserialize_keras_object(
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\serialization_lib.py", line 609, in deserialize_keras_object
return deserialize_keras_object(
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\saving\serialization_lib.py", line 728, in deserialize_keras_object
instance = cls.from_config(inner_config)
File "C:\Users\jhave\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\src\engine\base_layer.py", line 870, in from_config
raise TypeError(
TypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, 30], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer'}.
Exception encountered: Unrecognized keyword arguments: ['batch_shape']
The text was updated successfully, but these errors were encountered: