Closed worikgh closed 4 years ago
For the CartPole-v0 example passing a invalid action does not result in a error
CartPole-v0
let _state = match env.step(vec![0.03], false) { Ok(s) => { eprintln!("Step succeeded. state: '{:?}'", s); if s.done { break; } }, Err(e) => panic!("step failed. Err: '{}'", e), };
The step succeeded branch is taken.
step succeeded
For the
CartPole-v0
example passing a invalid action does not result in a errorThe
step succeeded
branch is taken.