pub struct SimpleStepProcessor<E, O, A> { /* private fields */ }
Expand description

A generic implementation of StepProcessorBase.

It supports 1-step TD backup for non-vectorized environment: E::Obs.len() must be 1.

Trait Implementations§

source§

impl<E, O, A> StepProcessorBase<E> for SimpleStepProcessor<E, O, A>where E: Env, O: SubBatch + From<E::Obs>, A: SubBatch + From<E::Act>,

§

type Config = SimpleStepProcessorConfig

Configuration.
§

type Output = StdBatch<O, A>

The type of transitions produced by this trait.
source§

fn build(_config: &Self::Config) -> Self

Build a producer.
source§

fn reset(&mut self, init_obs: E::Obs)

Resets the object.
source§

fn process(&mut self, step: Step<E>) -> Self::Output

Processes a Step object.

Auto Trait Implementations§

§

impl<E, O, A> RefUnwindSafe for SimpleStepProcessor<E, O, A>where A: RefUnwindSafe, E: RefUnwindSafe, O: RefUnwindSafe,

§

impl<E, O, A> Send for SimpleStepProcessor<E, O, A>where A: Send, E: Send, O: Send,

§

impl<E, O, A> Sync for SimpleStepProcessor<E, O, A>where A: Sync, E: Sync, O: Sync,

§

impl<E, O, A> Unpin for SimpleStepProcessor<E, O, A>where A: Unpin, E: Unpin, O: Unpin,

§

impl<E, O, A> UnwindSafe for SimpleStepProcessor<E, O, A>where A: UnwindSafe, E: UnwindSafe, O: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V