Skip to content

Document how initializers read custom parameter shapes - #678

Open
georgeguimaraes wants to merge 1 commit into
elixir-nx:mainfrom
georgeguimaraes:param-initializer-docs
Open

georgeguimaraes wants to merge 1 commit into
elixir-nx:mainfrom
georgeguimaraes:param-initializer-docs

Conversation

@georgeguimaraes

@georgeguimaraes georgeguimaraes commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Two doc fixes on Axon.param/3: the sentence about shape functions was cut off mid-way, and there was nothing saying that the variance scaling initializers treat every leading axis of a parameter as receptive field. A per-group kernel shaped {groups, in, out} therefore starts sqrt(groups) too small unless you pass glorot_uniform(scale: groups), which is what we had to work out by hand for soothsayer's per-series trend.

Also removes a trailing space in test/axon/loop_test.exs that makes mix format --check-formatted fail on main right now.

Axon.param's docs finish the sentence about shape functions and say
how the variance scaling initializers compute fans on a parameter
with a leading axis that is not a receptive field, and how to scale
them in that case. Also drops a trailing space in loop_test.exs that
fails mix format on main.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant