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 RudaType>::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 RudaType>::ExpandType, ) -> TensorArgExpand<P, RA, Output>
Trait Implementations§
Source§impl<P: ReduceDType, RA: ReduceArgs, Tag> RudaType for TensorArg<P, RA, Tag>
impl<P: ReduceDType, RA: ReduceArgs, Tag> RudaType for TensorArg<P, RA, Tag>
type ExpandType = TensorArgExpand<P, RA, Tag>
Source§impl<P: ReduceDType, RA: ReduceArgs> Vectorized for TensorArg<P, RA, Input>
impl<P: ReduceDType, RA: ReduceArgs> Vectorized for TensorArg<P, RA, Input>
fn vector_size(&self) -> usize
fn __expand_vector_size(_scope: &mut Scope, this: Self::ExpandType) -> usize
Source§impl<P: ReduceDType, RA: ReduceArgs> Vectorized for TensorArg<P, RA, Output>
impl<P: ReduceDType, RA: ReduceArgs> Vectorized for TensorArg<P, RA, Output>
fn vector_size(&self) -> usize
fn __expand_vector_size(_scope: &mut Scope, this: Self::ExpandType) -> usize
Source§impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::In, <P as ReduceDType>::SizeIn> for TensorArg<P, RA, Input>
impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::In, <P as ReduceDType>::SizeIn> for TensorArg<P, RA, Input>
fn as_tensor_map(&self) -> ComptimeOption<TensorMap<E, Tiled>>
fn read_window(&self, _start: usize, _end: usize) -> Slice<Vector<E, N>> ⓘ
fn len(&self) -> usize
fn buffer_len(&self) -> usize
fn __expand_as_tensor_map( scope: &mut Scope, this: Self::ExpandType, ) -> <ComptimeOption<TensorMap<E, Tiled>> as RudaType>::ExpandType
fn __expand_read( scope: &mut Scope, this: Self::ExpandType, _index: <usize as RudaType>::ExpandType, ) -> <Vector<E, N> as RudaType>::ExpandType
fn __expand_read_window( scope: &mut Scope, this: Self::ExpandType, _start: <usize as RudaType>::ExpandType, _end: <usize as RudaType>::ExpandType, ) -> <Slice<Vector<E, N>> as RudaType>::ExpandType ⓘ
fn __expand_write( scope: &mut Scope, this: Self::ExpandType, _index: <usize as RudaType>::ExpandType, _value: <Vector<E, N> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
fn __expand_shape( scope: &mut Scope, this: Self::ExpandType, _axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_stride( scope: &mut Scope, this: Self::ExpandType, _axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_rank( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_len( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_buffer_len( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
Source§impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::Out, <P as ReduceDType>::SizeOut> for TensorArg<P, RA, Output>
impl<P: ReduceDType, RA: ReduceArgs> VirtualTensorOperations<<P as ReduceDType>::Out, <P as ReduceDType>::SizeOut> for TensorArg<P, RA, Output>
fn as_tensor_map(&self) -> ComptimeOption<TensorMap<E, Tiled>>
fn read_window(&self, _start: usize, _end: usize) -> Slice<Vector<E, N>> ⓘ
fn len(&self) -> usize
fn buffer_len(&self) -> usize
fn __expand_as_tensor_map( scope: &mut Scope, this: Self::ExpandType, ) -> <ComptimeOption<TensorMap<E, Tiled>> as RudaType>::ExpandType
fn __expand_read( scope: &mut Scope, this: Self::ExpandType, _index: <usize as RudaType>::ExpandType, ) -> <Vector<E, N> as RudaType>::ExpandType
fn __expand_read_window( scope: &mut Scope, this: Self::ExpandType, _start: <usize as RudaType>::ExpandType, _end: <usize as RudaType>::ExpandType, ) -> <Slice<Vector<E, N>> as RudaType>::ExpandType ⓘ
fn __expand_write( scope: &mut Scope, this: Self::ExpandType, _index: <usize as RudaType>::ExpandType, _value: <Vector<E, N> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
fn __expand_shape( scope: &mut Scope, this: Self::ExpandType, _axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_stride( scope: &mut Scope, this: Self::ExpandType, _axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_rank( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_len( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
fn __expand_buffer_len( scope: &mut Scope, this: Self::ExpandType, ) -> <usize as RudaType>::ExpandType
Auto Trait Implementations§
impl<P, RA, Tag> !Send for TensorArg<P, RA, Tag>
impl<P, RA, Tag> !Sync for TensorArg<P, RA, Tag>
impl<P, RA, Tag> Freeze for TensorArg<P, RA, Tag>
impl<P, RA, Tag> RefUnwindSafe for TensorArg<P, RA, Tag>
impl<P, RA, Tag> Unpin for TensorArg<P, RA, Tag>
impl<P, RA, Tag> UnsafeUnpin for TensorArg<P, RA, Tag>
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