ONE - On-device Neural Engine
Loading...
Searching...
No Matches
mir::ops::BinaryElementwiseOp Class Reference

#include <BinaryElementwiseOp.h>

Collaboration diagram for mir::ops::BinaryElementwiseOp:

Protected Member Functions

 BinaryElementwiseOp (Type type, Output *lhs, Output *rhs)
 
- Protected Member Functions inherited from mir::Operation
 Operation (Type type, const std::vector< Output * > &inputs, std::size_t num_outputs=1)
 
void setOutputType (std::size_t index, const TensorType &type)
 

Additional Inherited Members

- Public Types inherited from mir::Operation
enum class  Type { HANDLE_OP }
 
- Public Member Functions inherited from mir::Operation
virtual ~Operation ()=default
 
Type getType () const
 
std::size_t getId () const
 
void setId (std::size_t id)
 
std::size_t getNumInputs () const
 
std::size_t getNumOutputs () const
 
std::deque< Output * > & getInputs ()
 
const std::deque< Output * > & getInputs () const
 
std::deque< Output > & getOutputs ()
 
const std::deque< Output > & getOutputs () const
 
OutputgetInput (std::size_t index)
 
const OutputgetInput (std::size_t index) const
 
OutputgetOutput (std::size_t index)
 
const OutputgetOutput (std::size_t index) const
 
const ShapegetInputShape (std::size_t index) const
 
const ShapegetOutputShape (std::size_t index) const
 
void accept (IVisitor *v)
 
virtual OperationcopyWithInputs (const std::vector< Output * > &inputs)=0
 

Detailed Description

Definition at line 27 of file BinaryElementwiseOp.h.

Constructor & Destructor Documentation

◆ BinaryElementwiseOp()

mir::ops::BinaryElementwiseOp::BinaryElementwiseOp ( Type  type,
Output lhs,
Output rhs 
)
inlineprotected

Definition at line 30 of file BinaryElementwiseOp.h.

30 : Operation(type, {lhs, rhs})
31 {
32 inferOutputTypes();
33 }

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