mlech26l / ncps

PyTorch and TensorFlow implementation of NCP, LTC, and CfC wired neural models
https://www.nature.com/articles/s42256-020-00237-3
Apache License 2.0
1.86k stars 297 forks source link

problem loading tensorflow models #36

Closed PolKul closed 1 year ago

PolKul commented 1 year ago

I'm using your example code from here I save the model using model.save(model_dir) but when loading it with the model = keras.models.load_model(model_dir) I get an error: TypeError: ('Keyword argument not understood:', 'adjacency_matrix')

mlech26l commented 1 year ago

Model serialization is currently not supported. Can you try saving and restoring only the weights via model.save_weights and model.load_weights?