Closed RohanRajagopal closed 1 year ago
It works for me with Julia 1.8.3 (also with Julia 1.8.4) and installing ReinforcementLearningExperiments
v0.1.4, which pulls:
ReinforcementLearning
v0.10.1Flux
v0.12.10NNlib
v0.8.11I tried with deleting the Environment, restarting Julia from fresh, and now it works. I tried it before, and that didn't do it. I probably missed something previously. I should have been more careful.
Apologies, and Thanks very much.
I'm hitting the same error and removing/reinstalling the environment doesn't fix it. It works fine if I use the package ReinforcementLearningExperiments
(v0.1.4), but if I just use ReinforcementLearning
directly and copy/paste the example I get the error.
Edit: Looks like ctc_loss
was moved from Flux to NNlib in Flux v0.13.5 and NNlib v0.8.9:
So pinning NNlib to v0.8.8 fixes the issue for now. I'm guessing that function just doesn't exist in Flux v0.12.
This error still persists, I don't believe it was fixed with the update to v0.10.2.
This is even with Flux back to v0.13.4 from v0.14.5 and CUDA back to v3.13.1 from vV5.0.0, which are already substantially downgraded.
ERROR: LoadError: UndefVarError: `params` not defined
Stacktrace:
[1] copyto!(dest::WARNING: both Losses and NNlib export "ctc_loss"; uses of it in module Flux must be qualified
NeuralNetworkApproximator{...}
(@v1.9) pkg> st
Status `~/.julia/environments/v1.9/Project.toml`
⌅ [052768ef] CUDA v3.13.1
⌅ [587475ba] Flux v0.13.4
[158674fc] ReinforcementLearning v0.10.2
[860ef19b] StableRNGs v1.0.0
Running the first experiment, "JuliaRL_BasicDQN_CartPole." On CPU
And get the following error,
Any help is deeply appreciated. Thanks very much.