You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running f(my_param) produces Param(value={'a': 0.0}), not Param(value={'a': 1.0}) as before. This is because getting the value parameter new returns a copy of the pytree values (like dict / list). Instead, use the __setitem__ method to update the value:
@nnx.jitdeff(m):
m['a'] =1.0returnm
nnx.Data and nnx.Static
nnx.Data and nnx.Static annotations are now deprecated. To create nnx.Pytree or nnx.Module dataclasses use the new nnx.dataclass with nnx.data and nnx.static as field descriptors.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Deprecations
Variable.value
Variable.valueis now deprecated. Consider the following example:Running
f(my_param)producesParam(value={'a': 0.0}), notParam(value={'a': 1.0})as before. This is because getting the value parameter new returns a copy of the pytree values (like dict / list). Instead, use the__setitem__method to update the value:nnx.Data and nnx.Static
nnx.Dataandnnx.Staticannotations are now deprecated. To creatennx.Pytreeornnx.Moduledataclasses use the newnnx.dataclasswithnnx.dataandnnx.staticas field descriptors.Pull Requests
*Normlayer docstrings:axis_index_groupsis unused under SPMD jit. by @copybara-service[bot] in Clarify*Normlayer docstrings:axis_index_groupsis unused under SPMD jit. #4940ArrayRefcreation to the end ofVariablecreation by @IvyZX in MoveArrayRefcreation to the end ofVariablecreation #4980nnx.tabulateby @samanklesaria in Add compute_flops and compute_vjp_flops options tonnx.tabulate#4948jnp.stackinstead ofnp.stackinflax.training.common_utils.stack_forestby @vfdev-5 in Usejnp.stackinstead ofnp.stackinflax.training.common_utils.stack_forest#4991jax.experimental.enable_x64tojax.enable_x64. by @copybara-service[bot] in Migrate fromjax.experimental.enable_x64tojax.enable_x64. #5011nnx.set_metadatato in-place change metadata of the state variables ofnnx.Modules by @pfackeldey in feat: addnnx.set_metadatato in-place change metadata of the state variables ofnnx.Modules #5007nnx.Linearin example by @rapsealk in Update README to use fully qualifiednnx.Linearin example #5023Variablenodes initer_graphand eliminate recursion. by @copybara-service[bot] in DeduplicateVariablenodes initer_graphand eliminate recursion. #5035nnx.jitis used withnnx.custom_vjpby @samanklesaria in Fix ValueError whennnx.jitis used withnnx.custom_vjp#5045allow_duplicatesargument ofnnx.to_arrays. by @dan-zheng in docs: Documentallow_duplicatesargument ofnnx.to_arrays. #5083New Contributors
nnx.tabulate#4948nnx.set_metadatato in-place change metadata of the state variables ofnnx.Modules #5007Full Changelog: v0.12.0...v0.12.1
This discussion was created from the release v0.12.1.
Beta Was this translation helpful? Give feedback.
All reactions