Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
fix error with iqn (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
findmyway authored Apr 4, 2021
1 parent 69b77b4 commit 98af458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/dqns/iqn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function RLBase.update!(learner::IQNLearner, batch::NamedTuple)
end

aₜ = argmax(avg_zₜ, dims = 1)
aₜ = aₜ .+ typeof(aₜ)(CartesianIndices((0, 0:N′-1, 0)))
aₜ = aₜ .+ typeof(aₜ)(CartesianIndices((0:0, 0:N′-1, 0:0)))
qₜ = reshape(zₜ[aₜ], :, batch_size)
target =
reshape(r, 1, batch_size) .+
Expand Down

0 comments on commit 98af458

Please sign in to comment.