pub struct InputBatch<B: Backend> {
pub encoder_input: Tensor<B, 3>,
pub tok_idx: Tensor<B, 2, Int>,
pub chan_pos: Tensor<B, 2>,
pub n_channels: usize,
pub tc: usize,
}Fields§
§encoder_input: Tensor<B, 3>[1, S, tf] — encoder input (normalised, zeroed = dropped channel)
tok_idx: Tensor<B, 2, Int>[S, 4] — 4-D RoPE token indices
chan_pos: Tensor<B, 2>[C, 3] — continuous channel positions (metres)
n_channels: usize§tc: usizeAuto Trait Implementations§
impl<B> Freeze for InputBatch<B>where
<B as Backend>::IntTensorPrimitive: Freeze,
<B as Backend>::FloatTensorPrimitive: Freeze,
<B as Backend>::QuantizedTensorPrimitive: Freeze,
impl<B> RefUnwindSafe for InputBatch<B>where
<B as Backend>::IntTensorPrimitive: RefUnwindSafe,
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for InputBatch<B>
impl<B> Sync for InputBatch<B>
impl<B> Unpin for InputBatch<B>where
<B as Backend>::IntTensorPrimitive: Unpin,
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
impl<B> UnsafeUnpin for InputBatch<B>where
<B as Backend>::IntTensorPrimitive: UnsafeUnpin,
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for InputBatch<B>where
<B as Backend>::IntTensorPrimitive: UnwindSafe,
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: 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