Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit f637533

Browse files
authored
Merge pull request #579 from JuliaGPU/tb/rnn_transpose
RNN: Don't transpose 1D vectors.
2 parents e9b39c8 + e365938 commit f637533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dnn/rnn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ end
6161
function setweights!(d::RNNDesc, Wi, Wh, b)
6262
transpose!(d.weights[1], Wi)
6363
transpose!(d.weights[2], Wh)
64-
transpose!(d.bias, b)
64+
copyto!(d.bias, b)
6565
return
6666
end
6767

0 commit comments

Comments
 (0)