-
I've asked in Discourse but without luck. Sorry to ask it here. I cannot find any doc about this. BTW, I am trying to reproduce the SegRNN Pytorch model using Lux.jl, which uses If there is no equivalent to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Pytorch needs Regarding how to do it in Lux, you would want to create a custom layer and define |
Beta Was this translation helpful? Give feedback.
-
That's neat! I will give it a try. |
Beta Was this translation helpful? Give feedback.
Pytorch needs
nn.Parameter
since it needs to differentiate "tracked" and non-"tracked" arrays. If you want a strict equivalence,Tracker.TrackedArray
does the same thing.Regarding how to do it in Lux, you would want to create a custom layer and define
initialparameters
https://lux.csail.mit.edu/dev/manual/interface#layer-interface which returns apos_emb
and other such things. Then using Zygote you can train them.