-
Hello, I was wondering whats the correct way to use the Embedding layer.
but that doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
avik-pal
Sep 8, 2024
Replies: 1 comment
-
That is not the correct way to call Lux layers. See the manual on the interface specification. x = Embedding(10 => 10)
ps, st = Lux.setup(Random.default_rng(), x)
y = x([1,2,3], ps, st)
z = x(5, ps, st) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
avik-pal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is not the correct way to call Lux layers. See the manual on the interface specification.