pub enum ChainOperand {
Tensor(TensorBinding),
Scalar(ScalarBinding),
}Expand description
One operand of a KernelPattern::ElementWiseChain step.
Variants§
Tensor(TensorBinding)
A whole tensor, read at the same index the result is stored at.
Scalar(ScalarBinding)
A dispatch-time scalar, broadcast over every element.
Trait Implementations§
Source§impl Clone for ChainOperand
impl Clone for ChainOperand
Source§fn clone(&self) -> ChainOperand
fn clone(&self) -> ChainOperand
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 ChainOperand
impl Debug for ChainOperand
Auto Trait Implementations§
impl Freeze for ChainOperand
impl RefUnwindSafe for ChainOperand
impl Send for ChainOperand
impl Sync for ChainOperand
impl Unpin for ChainOperand
impl UnsafeUnpin for ChainOperand
impl UnwindSafe for ChainOperand
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