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

Issue with BatchNorm layer #60

Open
minesh1291 opened this issue Jan 19, 2023 · 1 comment
Open

Issue with BatchNorm layer #60

minesh1291 opened this issue Jan 19, 2023 · 1 comment
Assignees

Comments

@minesh1291
Copy link

while using policy network with BatchNorm layer, getting following error:

ModifyScopeVariableError: Cannot update variable "mean" in "/bn_init" because collection "batch_stats" is immutable. 
 (https://flax.readthedocs.io/en/latest/api_reference/flax.errors.html#flax.errors.ModifyScopeVariableError)
@lerrytang lerrytang self-assigned this Jan 31, 2023
@lerrytang
Copy link
Contributor

Hi, thanks for the question.
BN seems to have a different implementation from other "normal" layers.
Currently, there is no example in evojax that deals with BN layers, and we may need some time to write one.
On the other hand, if you solve the problem first, we'd love to have your PR.

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