pub struct Mamba2SsdInput<B: Backend> {
pub x_bnlhp: Tensor<B, 5>,
pub dt_bnlh: Tensor<B, 4>,
pub a_decay_h: Tensor<B, 1>,
pub b_bnlgr: Tensor<B, 5>,
pub c_bnlgr: Tensor<B, 5>,
pub d_h: Tensor<B, 1>,
pub initial_state_bhpr: Tensor<B, 4>,
pub init_state_hpr: Option<Tensor<B, 3>>,
}Fields§
§x_bnlhp: Tensor<B, 5>§Shape
- [batch, nchunks, chunk_len, nheads, per_head_dim]
dt_bnlh: Tensor<B, 4>§Shape
- [batch, nchunks, chunk_len, nheads]
a_decay_h: Tensor<B, 1>§Shape
- [nheads]
b_bnlgr: Tensor<B, 5>§Shape
- [batch, nchunks, chunk_len, ngroups, state_rank]
c_bnlgr: Tensor<B, 5>§Shape
- [batch, nchunks, chunk_len, ngroups, state_rank]
d_h: Tensor<B, 1>§Shape
- [nheads]
initial_state_bhpr: Tensor<B, 4>§Shape
- [batch, nheads, per_head_dim, state_rank]
init_state_hpr: Option<Tensor<B, 3>>§Shape
- [nheads, per_head_dim, state_rank]
Implementations§
Source§impl<B: Backend> Mamba2SsdInput<B>
impl<B: Backend> Mamba2SsdInput<B>
Auto Trait Implementations§
impl<B> Freeze for Mamba2SsdInput<B>
impl<B> RefUnwindSafe for Mamba2SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::QuantizedTensorPrimitive: RefUnwindSafe,
impl<B> Send for Mamba2SsdInput<B>
impl<B> Sync for Mamba2SsdInput<B>
impl<B> Unpin for Mamba2SsdInput<B>
impl<B> UnsafeUnpin for Mamba2SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> UnwindSafe for Mamba2SsdInput<B>where
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
<B as BackendTypes>::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