Closed kraftpunk97-zz closed 5 years ago
@tejank10 Made the requested changes. Please review.
✅Check
@tejank10 I looked into the internal error I got with the DiffRL.jl example (Present in this gist) So, it all comes down to line 90 of the CartPole environment which is...
done = !(all(vcat(-env.x_threshold .≤ x_ .≤ env.x_threshold, -env.θ_threshold_radians .≤ θ_ .≤ env.θ_threshold_radians)))
Any clue as to why this doesn't sit right with Zygote?
The DQN example for the CartPole environment and the environment itself has been updated to stop converting the actions (
Discrete(2)
) to(-1, 1)
. Functioninv_action
has been discarded. ~Please make corresponding changes in the model-zoo as well.~ Changes proposed to the model-zoo version with this PR.