pub struct TensorArg<P: ReduceDType, RA: ReduceArgs, Tag> { /* private fields */ }
Implementations§
Source§impl<P: ReduceDType, RA: ReduceArgs> TensorArg<P, RA, Input>
impl<P: ReduceDType, RA: ReduceArgs> TensorArg<P, RA, Input>
pub fn new_input(_state: &RA::State<P>) -> Self
pub fn __expand_new_input( _scope: &mut Scope, state: <RA::State<P> as CubeType>::ExpandType, ) -> TensorArgExpand<P, RA, Input>
Source§impl<P: ReduceDType, RA: ReduceArgs> TensorArg<P, RA, Output>
impl<P: ReduceDType, RA: ReduceArgs> TensorArg<P, RA, Output>
pub fn new_output(_state: &mut RA::State<P>) -> Self
pub fn __expand_new_output( _scope: &mut Scope, state: <RA::State<P> as CubeType>::ExpandType, ) -> TensorArgExpand<P, RA, Output>
Trait Implementations§
Source§impl<P: ReduceDType, RA: ReduceArgs, Tag> CubeType for TensorArg<P, RA, Tag>
impl<P: ReduceDType, RA: ReduceArgs, Tag> CubeType for TensorArg<P, RA, Tag>
type ExpandType = TensorArgExpand<P, RA, Tag>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::In> for TensorArg<P, RA, Input>
impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::In> for TensorArg<P, RA, Input>
Source§impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::Out> for TensorArg<P, RA, Output>
impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::Out> for TensorArg<P, RA, Output>
Auto Trait Implementations§
impl<P, RA, Tag> Freeze for TensorArg<P, RA, Tag>
impl<P, RA, Tag> RefUnwindSafe for TensorArg<P, RA, Tag>
impl<P, RA, Tag> !Send for TensorArg<P, RA, Tag>
impl<P, RA, Tag> !Sync for TensorArg<P, RA, Tag>
impl<P, RA, Tag> Unpin for TensorArg<P, RA, Tag>where
Tag: Unpin,
impl<P, RA, Tag> UnwindSafe for TensorArg<P, RA, Tag>
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