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

Element-wise addition. More...

#include <Ops.h>

Collaboration diagram for coco::Add:

Public Member Functions

 Add ()=default
 
 Add (const Add &)=delete
 
 Add (Add &&)=delete
 
AddasAdd (void) override
 
const AddasAdd (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 addition.

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

Definition at line 286 of file Ops.h.

Constructor & Destructor Documentation

◆ Add() [1/3]

coco::Add::Add ( )
explicitdefault

◆ Add() [2/3]

coco::Add::Add ( const Add )
delete

◆ Add() [3/3]

coco::Add::Add ( Add &&  )
delete

Member Function Documentation

◆ asAdd() [1/2]

const Add * coco::Add::asAdd ( void  ) const
inlineoverride

Definition at line 297 of file Ops.h.

297{ return this; }

◆ asAdd() [2/2]

Add * coco::Add::asAdd ( void  )
inlineoverride

Definition at line 296 of file Ops.h.

296{ return this; }

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