Struct border::env::py_gym_env::vec::PyVecGymEnv [−][src]
pub struct PyVecGymEnv<O, A, OF, AF> { /* fields omitted */ }
Expand description
A vectorized environment using multiprocess module in Python. The code is adapted from tch-rs RL example.
Implementations
impl<O, A, OF, AF> PyVecGymEnv<O, A, OF, AF> where
O: Obs,
A: Act,
OF: PyGymEnvObsFilter<O>,
AF: PyGymEnvActFilter<A>,
[src]
impl<O, A, OF, AF> PyVecGymEnv<O, A, OF, AF> where
O: Obs,
A: Act,
OF: PyGymEnvObsFilter<O>,
AF: PyGymEnvActFilter<A>,
[src]pub fn get_num_actions_atari(&self) -> i64
[src]
pub fn get_num_actions_atari(&self) -> i64
[src]Get the number of available actions of atari environments
Trait Implementations
impl<O: Clone, A: Clone, OF: Clone, AF: Clone> Clone for PyVecGymEnv<O, A, OF, AF>
[src]
impl<O: Clone, A: Clone, OF: Clone, AF: Clone> Clone for PyVecGymEnv<O, A, OF, AF>
[src]fn clone(&self) -> PyVecGymEnv<O, A, OF, AF>
[src]
fn clone(&self) -> PyVecGymEnv<O, A, OF, AF>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<O, A, OF, AF> Env for PyVecGymEnv<O, A, OF, AF> where
O: Obs,
A: Act,
OF: PyGymEnvObsFilter<O>,
AF: PyGymEnvActFilter<A>,
[src]
impl<O, A, OF, AF> Env for PyVecGymEnv<O, A, OF, AF> where
O: Obs,
A: Act,
OF: PyGymEnvObsFilter<O>,
AF: PyGymEnvActFilter<A>,
[src]Auto Trait Implementations
impl<O, A, OF, AF> !RefUnwindSafe for PyVecGymEnv<O, A, OF, AF>
impl<O, A, OF, AF> Send for PyVecGymEnv<O, A, OF, AF> where
A: Send,
AF: Send,
O: Send,
OF: Send,
A: Send,
AF: Send,
O: Send,
OF: Send,
impl<O, A, OF, AF> Sync for PyVecGymEnv<O, A, OF, AF> where
A: Sync,
AF: Sync,
O: Sync,
OF: Sync,
A: Sync,
AF: Sync,
O: Sync,
OF: Sync,
impl<O, A, OF, AF> Unpin for PyVecGymEnv<O, A, OF, AF> where
A: Unpin,
AF: Unpin,
O: Unpin,
OF: Unpin,
A: Unpin,
AF: Unpin,
O: Unpin,
OF: Unpin,
impl<O, A, OF, AF> UnwindSafe for PyVecGymEnv<O, A, OF, AF> where
A: UnwindSafe,
AF: UnwindSafe,
O: UnwindSafe,
OF: UnwindSafe,
A: UnwindSafe,
AF: UnwindSafe,
O: UnwindSafe,
OF: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,