Dense layer field alias

a.W is actually getproperty(a, :W). This is not specific to Flux, but how the dot works in Julia.

Flux adds a specialization to getproperty. See @which a.W and the corresponding source file.

3 Likes