You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've experienced an error (using Flux 0.11.6) with the following code:
using Flux
struct train_part
a
b
endfunction (a::train_part)(x)
a.a * a.b * x
end
Flux.@functor train_part (a,) # Specify that only the 'a' matrix is trainable.
m =Chain(
Dense(2, 2, tanh),
train_part(zeros(2,2), zeros(2,2)),
)
Flux.destructure(m)
I think what might be happening is that destructure extracts one value from train_part, because only one of the values in train_part is trainable, and then it tries to reconstruct it with just the one variable, which does not work.
The text was updated successfully, but these errors were encountered:
Hello,
I've experienced an error (using Flux 0.11.6) with the following code:
This is the error message:
I think what might be happening is that
destructure
extracts one value fromtrain_part
, because only one of the values intrain_part
is trainable, and then it tries to reconstruct it with just the one variable, which does not work.The text was updated successfully, but these errors were encountered: