pub struct Span { /* private fields */ }
Expand description
Area of a tensor a cube is responsible of performing matmul Similar to the concept of tensor slice, but specialized for matmul constraints
Implementations§
Source§impl Span
impl Span
pub fn new(row: SpanDim, col: SpanDim, batch: SpanDim) -> Span
pub fn __expand_new( context: &mut Scope, row: <SpanDim as CubeType>::ExpandType, col: <SpanDim as CubeType>::ExpandType, batch: <SpanDim as CubeType>::ExpandType, ) -> <Span as CubeType>::ExpandType
Trait Implementations§
Source§impl CubeType for Span
impl CubeType for Span
type ExpandType = SpanExpand
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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