pub struct BatchItem<B: Backend> {
pub past_target: Tensor<B, 2>,
pub past_observed_values: Tensor<B, 2>,
pub future_target: Tensor<B, 2>,
pub future_observed_values: Tensor<B, 2>,
pub feat_static_real: Option<Tensor<B, 2>>,
pub feat_static_cat: Option<Tensor<B, 2, Int>>,
pub feat_dynamic_real: Option<Tensor<B, 3>>,
pub feat_dynamic_cat: Option<Tensor<B, 3, Int>>,
pub past_feat_dynamic_real: Option<Tensor<B, 3>>,
pub past_feat_dynamic_cat: Option<Tensor<B, 3, Int>>,
}Fields§
§past_target: Tensor<B, 2>§past_observed_values: Tensor<B, 2>§future_target: Tensor<B, 2>§future_observed_values: Tensor<B, 2>§feat_static_real: Option<Tensor<B, 2>>§feat_static_cat: Option<Tensor<B, 2, Int>>§feat_dynamic_real: Option<Tensor<B, 3>>§feat_dynamic_cat: Option<Tensor<B, 3, Int>>§past_feat_dynamic_real: Option<Tensor<B, 3>>§past_feat_dynamic_cat: Option<Tensor<B, 3, Int>>Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for BatchItem<B>where
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
<B as BackendTypes>::QuantizedTensorPrimitive: Freeze,
<B as BackendTypes>::IntTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for BatchItem<B>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::IntTensorPrimitive: RefUnwindSafe,
impl<B> Send for BatchItem<B>
impl<B> Sync for BatchItem<B>
impl<B> Unpin for BatchItem<B>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
<B as BackendTypes>::IntTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for BatchItem<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::IntTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for BatchItem<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: UnwindSafe,
<B as BackendTypes>::IntTensorPrimitive: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more