pub struct InputBatch<B: Backend> {
pub signal: Tensor<B, 3>,
pub channel_locations: Tensor<B, 3>,
pub channel_names: Option<Tensor<B, 2, Int>>,
pub n_channels: usize,
pub n_samples: usize,
}Expand description
A single prepared input for the LUNA model.
Fields§
§signal: Tensor<B, 3>EEG signal: [1, C, T] — z-scored and normalised.
channel_locations: Tensor<B, 3>Channel 3D positions in metres: [1, C, 3].
channel_names: Option<Tensor<B, 2, Int>>Channel name indices into the global vocabulary: [1, C].
n_channels: usizeNumber of channels.
n_samples: usizeNumber of time samples.
Auto Trait Implementations§
impl<B> Freeze for InputBatch<B>where
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
<B as Backend>::IntTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for InputBatch<B>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
<B as Backend>::IntTensorPrimitive: RefUnwindSafe,
impl<B> Send for InputBatch<B>
impl<B> Sync for InputBatch<B>
impl<B> Unpin for InputBatch<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::IntTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for InputBatch<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::IntTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for InputBatch<B>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: UnwindSafe,
<B as Backend>::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
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