Closed NEGU93 closed 1 year ago
I found the fix, you should do:
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense
from tcn import TCN
from tensorflow.keras.models import load_model
model = Sequential([TCN(input_shape=(4, 23)), Dense(1)])
model.save(SAVE_PATH)
loaded_model = load_model(SAVE_PATH, custom_objects={'TCN': TCN})
loaded_model.save(SAVE_PATH)
loaded_model = load_model(SAVE_PATH, custom_objects={'TCN': TCN})
Describe the bug Saving a loaded model gets following error message
After that, trying to open the model again gets:
Paste a snippet