Removed .data from LSTMCell
This commit is contained in:
parent
517219ba23
commit
3ee2a76f61
@ -109,7 +109,7 @@ function LSTMCell(in::Integer, out::Integer;
|
|||||||
init = glorot_uniform)
|
init = glorot_uniform)
|
||||||
cell = LSTMCell(init(out * 4, in), init(out * 4, out), init(out * 4),
|
cell = LSTMCell(init(out * 4, in), init(out * 4, out), init(out * 4),
|
||||||
zeros(out), zeros(out))
|
zeros(out), zeros(out))
|
||||||
cell.b.data[gate(out, 2)] .= 1
|
cell.b[gate(out, 2)] .= 1
|
||||||
return cell
|
return cell
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user