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
In this demo for Dense layer, user can use provided weight matrix to build Dense layer. d1 = Dense(ones(2, 5), false, tanh). When I want to build a RNN/LSTM layer, it failed Lstm = Flux.LSTMCell(W2_1,W2_2,b2,s2_1) Lstm(data[1]).
The above W2_1,W2_2,b2,s2_1 are pre-defined random weight matrix. The error is MethodError: objects of type Flux.LSTMCell{Matrix{Float64}, Vector{Float64}, Vector{Float64}} are not callable
Motivation
No response
Possible Implementation
No response
The text was updated successfully, but these errors were encountered:
The state you initialize the LSTMCell with needs to be a 2-tuple of AbstractMatrix (e.g. (ones(1, 1), zeros(1, 1)) and not a single array as you described. Otherwise
Describe the potential feature
In this demo for Dense layer, user can use provided weight matrix to build Dense layer.
d1 = Dense(ones(2, 5), false, tanh)
. When I want to build a RNN/LSTM layer, it failedLstm = Flux.LSTMCell(W2_1,W2_2,b2,s2_1) Lstm(data[1])
.The above W2_1,W2_2,b2,s2_1 are pre-defined random weight matrix. The error is
MethodError: objects of type Flux.LSTMCell{Matrix{Float64}, Vector{Float64}, Vector{Float64}} are not callable
Motivation
No response
Possible Implementation
No response
The text was updated successfully, but these errors were encountered: