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
Ah, this could be better documented! The initializer for Penzai's Linear layer doesn't directly use JAX-style initializers like jax.nn.initializers.xavier_normal(). You should be able to use pz.nn.xavier_normal_initializer instead.
Would it be possible to add a feature that wraps JAX initializers into Penzai initializers? Currently, Penzai only has two implemented initializers for neural networks. I believe the implementation would be similar to the existing variance_scaling_initializer in Penzai.
If this can be considered a valid feature request, I’d be happy to contribute—provided the main contributors approve it in terms of feasibility and usefulness.
I am trying to create a simple linear layer as follows,
I am getting the error,
I don't see anything in the documentation that can explain the cause of this error.
The text was updated successfully, but these errors were encountered: