ONE - On-device Neural Engine
Loading...
Searching...
No Matches
coco::Sub Class Referencefinal

Element-wise subtraction. More...

#include <Ops.h>

Collaboration diagram for coco::Sub:

Public Member Functions

 Sub ()=default
 
 Sub (const Sub &)=delete
 
 Sub (Sub &&)=delete
 
SubasSub (void) override
 
const SubasSub (void) const override
 
- Public Member Functions inherited from coco::BinaryOp
 BinaryOp ()
 
 BinaryOp (const BinaryOp &)=delete
 
 BinaryOp (BinaryOp &&)=delete
 
virtual ~BinaryOp ()=default
 
uint32_t arity (void) const final
 Return the number of arguments (# of child Ops)
 
Oparg (uint32_t n) const final
 Return N-th argument.
 
std::set< Object * > uses (void) const final
 Return a set of object(s) used during execution.
 
Opleft (void) const
 
void left (Op *op)
 
Opright (void) const
 
void right (Op *op)
 
- Public Member Functions inherited from coco::Op
virtual ~Op ()
 
template<typename T >
accept (IVisitor< T > *v) const
 
template<typename T >
accept (IVisitor< T > &v) const
 
template<typename T >
accept (IVisitor< T > &&v) const
 
void accept (IMutator *m)
 
void accept (IMutator &m)
 
void accept (IMutator &&m)
 
Instrparent (void) const
 
Opup (void) const
 Return a pointer to the parent Op.
 
- Public Member Functions inherited from coco::Entity
virtual ~Entity ()=default
 
Modulemodule (void) const
 

Detailed Description

Element-wise subtraction.

Sub(L, R) is valid only when L and R have identical kind/shape/dtype

Definition at line 305 of file Ops.h.

Constructor & Destructor Documentation

◆ Sub() [1/3]

coco::Sub::Sub ( )
explicitdefault

◆ Sub() [2/3]

coco::Sub::Sub ( const Sub )
delete

◆ Sub() [3/3]

coco::Sub::Sub ( Sub &&  )
delete

Member Function Documentation

◆ asSub() [1/2]

const Sub * coco::Sub::asSub ( void  ) const
inlineoverride

Definition at line 316 of file Ops.h.

316{ return this; }

◆ asSub() [2/2]

Sub * coco::Sub::asSub ( void  )
inlineoverride

Definition at line 315 of file Ops.h.

315{ return this; }

The documentation for this class was generated from the following file: