pub struct LazyHistoryFeatures<'a, OS: Space + ?Sized, AS: Space + ?Sized, E> { /* private fields */ }
Expand description
Packed history features with lazy evaluation and caching.
Implementations
Trait Implementations
sourceimpl<'a, OS: Debug + Space + ?Sized, AS: Debug + Space + ?Sized, E: Debug> Debug for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS: Debug + Space + ?Sized, AS: Debug + Space + ?Sized, E: Debug> Debug for LazyHistoryFeatures<'a, OS, AS, E>
sourceimpl<'a, OS, AS, E> HistoryFeatures for LazyHistoryFeatures<'a, OS, AS, E> where
OS: FeatureSpace + ?Sized,
AS: ReprSpace<Tensor> + ?Sized,
E: Sequence<Item = &'a PartialStep<OS::Element, AS::Element>> + IntoIterator<Item = &'a PartialStep<OS::Element, AS::Element>> + Copy,
E::IntoIter: DoubleEndedIterator,
impl<'a, OS, AS, E> HistoryFeatures for LazyHistoryFeatures<'a, OS, AS, E> where
OS: FeatureSpace + ?Sized,
AS: ReprSpace<Tensor> + ?Sized,
E: Sequence<Item = &'a PartialStep<OS::Element, AS::Element>> + IntoIterator<Item = &'a PartialStep<OS::Element, AS::Element>> + Copy,
E::IntoIter: DoubleEndedIterator,
sourcefn observation_features(&self) -> &PackedTensor
fn observation_features(&self) -> &PackedTensor
Packed observation features. A 2D f32
tensor.
sourcefn extended_observation_features(&self) -> (&PackedTensor, &PackedTensor)
fn extended_observation_features(&self) -> (&PackedTensor, &PackedTensor)
Packed extended observation features. Includes interrupted successor observations. Read more
sourcefn actions(&self) -> &PackedTensor
fn actions(&self) -> &PackedTensor
Packed action values. Read more
sourcefn rewards(&self) -> &PackedTensor
fn rewards(&self) -> &PackedTensor
Packed rewards. A 1D f32 tensor.
Auto Trait Implementations
impl<'a, OS: ?Sized, AS: ?Sized, E> RefUnwindSafe for LazyHistoryFeatures<'a, OS, AS, E> where
AS: RefUnwindSafe,
E: RefUnwindSafe,
OS: RefUnwindSafe,
impl<'a, OS, AS, E> !Send for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS, AS, E> !Sync for LazyHistoryFeatures<'a, OS, AS, E>
impl<'a, OS: ?Sized, AS: ?Sized, E> Unpin for LazyHistoryFeatures<'a, OS, AS, E> where
E: Unpin,
impl<'a, OS: ?Sized, AS: ?Sized, E> UnwindSafe for LazyHistoryFeatures<'a, OS, AS, E> where
AS: RefUnwindSafe,
E: UnwindSafe,
OS: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more