Relative Content

Tag Archive for pythontensorflowerror-handlingscriptingeof

How to resolve EOF error & TF_ENABLE_ONEDNN_OPTS=0

2024-06-02 21:54:28.903963: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-06-02 21:54:29.891787: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
Traceback (most recent call last):
File “D:LoRa_RFFILoRa_RFFIOpenset_RFFI_TIFSmain.py”, line 381, in
pred_label, true_label, acc = test_classification(file_path_enrol =
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFILoRa_RFFIOpenset_RFFI_TIFSmain.py”, line 160, in test_classification
feature_extractor = load_model(‘D:LoRa_RFFILoRa_RFFImodelsExtractor_1.h5’, compile=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrcsavingsaving_api.py”, line 183, in load_model
return legacy_h5_format.load_model_from_hdf5(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclegacysavinglegacy_h5_format.py”, line 133, in load_model_from_hdf5
model = saving_utils.model_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclegacysavingsaving_utils.py”, line 85, in model_from_config
return serialization.deserialize_keras_object(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclegacysavingserialization.py”, line 495, in deserialize_keras_object
deserialized_obj = cls.from_config(
^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrcmodelsmodel.py”, line 517, in from_config
return functional_from_config(
^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrcmodelsfunctional.py”, line 517, in functional_from_config
process_layer(layer_data)
File “D:LoRa_RFFIbtpLibsite-packageskerassrcmodelsfunctional.py”, line 497, in process_layer
layer = saving_utils.model_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclegacysavingsaving_utils.py”, line 85, in model_from_config
return serialization.deserialize_keras_object(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclegacysavingserialization.py”, line 495, in deserialize_keras_object
deserialized_obj = cls.from_config(
^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrclayerscorelambda_layer.py”, line 192, in from_config
fn = python_utils.func_load(
^^^^^^^^^^^^^^^^^^^^^^^
File “D:LoRa_RFFIbtpLibsite-packageskerassrcutilspython_utils.py”, line 83, in func_load
code = marshal.loads(raw_code)
^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF read where object expected
how to resolve this error