I am not quite familiar with flax and this command has been deprecated in later versions so it lacks of documentation.
How are you using this copy methods? Is it for stopping gradients?
|
loss = self.mod.apply(variable.copy(dict(params=params)), ϕ, method="loss") |
Do you know how to make it compatible with the latest version of flax?
Thank you
I am not quite familiar with flax and this command has been deprecated in later versions so it lacks of documentation.
How are you using this copy methods? Is it for stopping gradients?
Neural-Spectral-Methods/src/train.py
Line 18 in 090e7a1
Do you know how to make it compatible with the latest version of flax?
Thank you