Struct web_rwkv::tensor::TensorStack
source · pub struct TensorStack<'a, T: Scalar> {
pub tensor: TensorCpu<'a, T>,
pub cursors: Vec<Cursor>,
}Expand description
Stack a batch of tensors of shape [C, T, 1] to one with shape [C, A, 1], with cursors information.
Fields§
§tensor: TensorCpu<'a, T>§cursors: Vec<Cursor>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for TensorStack<'a, T>
impl<'a, T> Send for TensorStack<'a, T>
impl<'a, T> Sync for TensorStack<'a, T>where
T: Sync,
impl<'a, T> Unpin for TensorStack<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for TensorStack<'a, T>
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