Skip to content

Commit

Permalink
add rnn in test - oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhairya Gandhi committed Oct 15, 2020
1 parent 4d27f4b commit f6f9925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/layers/recurrent.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Ref FluxML/Flux.jl#1209
@testset "BPTT" begin
seq = [rand(2) for i = 1:3]
for rnn [RNN,]
for r [RNN,]
rnn = r(2,3)
Flux.reset!(rnn)
grads_seq = gradient(Flux.params(rnn)) do
sum(rnn.(seq)[3])
Expand Down

0 comments on commit f6f9925

Please sign in to comment.