Skip to content

setindex! error when using WeightInitializers.jl #1703

@grero

Description

@grero

This error cropped up suddenly in this pull request to my custom RNN package:

https://github.com/grero/RecurrentNetworkModels.jl/actions/runs/18002287527/job/51214239409?pr=16

I got the advice in this julia discourse thread to use Random.default_rng() instead of StableRNGs.StableRNG, but as the above job shows, the error still persists.

The offending line seems to be this one

z₃ = rnn.η*Lux.randn32(st.rng, rnn.out_dims, size(x,2))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions