flax.errors.ScopeParamNotFoundError: No parameter named "kernel" exists in "/Conv_0".
See original GitHub issueModel.apply({'params':params}, batch)
in the loss function seems to throw the error above. I pretty much followed the examples in the docs line-by-line with no luck.
Here is a minimal example of the issue reproduced in google colab - https://colab.research.google.com/drive/12mRim_N4cWmv4nmeuknq8RT2VWUA5egB
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
flax.errors.ScopeParamNotFoundError: No parameter ... - GitHub
flax.errors.ScopeParamNotFoundError: No parameter named "kernel" exists in "/MLP_0/Dense_0" when attempting to use Jax2TF with a pre-trained JAX NeRF Model ...
Read more >flax.errors
[docs]class ScopeParamNotFoundError(FlaxError): """This error is thrown when trying to access a parameter that does not exist. For instance, in the code ...
Read more >Flax 2 ("Linen") - Colaboratory - Google Colab
Let's instantiate a Dense layer. Modules are actually objects in this API, so we provide contructor arguments when initializing the Module. In this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you wrote
but you probably meant
You have to make sure you take the
params
of the variable dict returns byinit
. So when you create your optimizer you should do:The error message is not very clear, so thank you for bringing this up! 👍
We should consider improving the error message to something like “Maybe you passing in an incorrect variable dict”?