How to replace set_value in Keras 3? #19824
-
I can see that it's deprecated (also in the repo code) How do we replace |
Beta Was this translation helpful? Give feedback.
Answered by
abhaskumarsinha
Jun 22, 2024
Replies: 1 comment 1 reply
-
Hey there, You can still use TensorFlow's functions to set values within the Keras v3.0+ framework. To work out in backend invarient way, you might convert the weights to numpy tensors and then set them as weights back depending upon the requirement and size of the model. Thank You. Best Regards. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ghsanti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
You can still use TensorFlow's functions to set values within the Keras v3.0+ framework.
To work out in backend invarient way, you might convert the weights to numpy tensors and then set them as weights back depending upon the requirement and size of the model.
Thank You.
Best Regards.