Hi,
I’ve a probabilistic model. I’m trying to save and load my model but I’ve got error message
TypeError: ‘str’ object is not callable
I’ve tried to follow
https://www.tensorflow.org/guide/keras/serialization_and_saving#registering_the_custom_object
Maybe I missed something
My project is here:
https://github.com/jsmith173/BNN/blob/main/layer1.py
Thanks
Hi @jsmith654x Welcome to tensorflow forum ,
This occurs in Python when you try to call (use parentheses ()
) a string object as if it were a function or callable object. This can happen in various contexts, but in the context of saving and loading a probabilistic model, it usually relates to how you’re interacting with file paths or functions related to saving and loading models.
Thank You !