This repository was archived by the owner on May 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5353 # check they all work - no errors == no worries
5454 println (" ------------------------------ Check envs load ------------------------------" )
5555 for (i, env) in enumerate (envs)
56- @show env. name env. pyenv a = rand (env. actions)|> OpenAIGym. pyaction PyObject (a)|> pytypeof
56+ a = rand (env. actions) |> OpenAIGym. pyaction
57+ action_type = a |> PyObject |> pytypeof
58+ println (" env.pyenv: $(env. pyenv) action_type: $action_type ex: $a " )
5759 time_steps (env, 1 )
5860 @test ! ispynull (env. pyenv)
5961 println (" ------------------------------" )
6567 for env in envs
6668 num_eps = eps2trial[env]
6769 steps, t = time_steps (env, num_eps)
68- @show env. name num_eps t steps
69- println (" microsecs/step (lower is better): " , t* 1e6 / steps)
70+ println ( " env.pyenv: $( env. pyenv) num_eps: $num_eps t: $t steps: $steps " )
71+ println (" microsecs/step (lower is better): $( t* 1e6 / steps) " )
7072 println (" ------------------------------" )
7173 end
7274 println (" ------------------------------ End Julia Speed Check ------------------------------\n " )
You can’t perform that action at this time.
0 commit comments