pub struct OperandDescriptor { /* private fields */ }Expand description
Associates index names and a unary transform with a tensor descriptor.
Implementations§
Source§impl OperandDescriptor
impl OperandDescriptor
pub fn new(tensor: TensorDescriptor, modes: &[Mode]) -> Result<Self>
pub fn from_tensor<R: Runtime>( tensor: &RudaTensor<R>, modes: &[Mode], ) -> Result<Self>
pub fn with_unary(self, unary: UnaryOp) -> Self
pub fn tensor(&self) -> &TensorDescriptor
pub fn modes(&self) -> &[Mode] ⓘ
pub fn unary(&self) -> UnaryOp
Trait Implementations§
Source§impl Clone for OperandDescriptor
impl Clone for OperandDescriptor
Source§fn clone(&self) -> OperandDescriptor
fn clone(&self) -> OperandDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperandDescriptor
impl Debug for OperandDescriptor
impl Eq for OperandDescriptor
Source§impl PartialEq for OperandDescriptor
impl PartialEq for OperandDescriptor
impl StructuralPartialEq for OperandDescriptor
Auto Trait Implementations§
impl Freeze for OperandDescriptor
impl RefUnwindSafe for OperandDescriptor
impl Send for OperandDescriptor
impl Sync for OperandDescriptor
impl Unpin for OperandDescriptor
impl UnsafeUnpin for OperandDescriptor
impl UnwindSafe for OperandDescriptor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.