[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting issues while saving model #54

Open
SigireddyBalasai opened this issue Aug 30, 2023 · 2 comments
Open

getting issues while saving model #54

SigireddyBalasai opened this issue Aug 30, 2023 · 2 comments

Comments

@SigireddyBalasai
Copy link

----> 1 model.save('location.keras')

File /opt/conda/lib/python3.10/site-packages/keras/utils/traceback_utils.py:70, in filter_traceback..error_handler(*args, **kwargs)
67 filtered_tb = _process_traceback_frames(e.traceback)
68 # To get the full stack trace, call:
69 # tf.debugging.disable_traceback_filtering()
---> 70 raise e.with_traceback(filtered_tb) from None
71 finally:
72 del filtered_tb

File /opt/conda/lib/python3.10/site-packages/ncps/tf/wired_cfc_cell.py:122, in WiredCfCCell.get_config(self)
120 seralized["mode"] = self.mode
121 seralized["activation"] = self._activation
--> 122 seralized["backbone_units"] = self.hidden_units
123 seralized["backbone_layers"] = self.hidden_layers
124 seralized["backbone_dropout"] = self.hidden_dropout

AttributeError: 'WiredCfCCell' object has no attribute 'hidden_units'

@SigireddyBalasai
Copy link
Author

@mlech26l @raminmh

@mlech26l
Copy link
Owner
mlech26l commented Sep 4, 2023

Hi @SigireddyBalasai

Model saving is not supported. You need to save/load only the weights: https://keras.io/api/saving/weights_saving_and_loading/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants