Questions in LSTM tutorial #695
Answered
by
avik-pal
NeroBlackstone
asked this question in
Q&A
-
In section Using the @compact API: x_init, x_rest = Iterators.peel(Lux._eachslice(x, Val(2))) I don't quite understand this line of code. What does Val(2) do here? |
Beta Was this translation helpful? Give feedback.
Answered by
avik-pal
Jun 11, 2024
Replies: 1 comment
-
It is same as the |
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
It is same as the
dims
kwarg ineachslice
, but passing inVal(2)
for type-stability