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

#include <ReduceMeanOp.h>

Collaboration diagram for mir::ops::ReduceMeanOp:

Public Member Functions

 ReduceMeanOp (Output *arg, const std::vector< int > &reduction_dims, bool keep_dims)
 
OperationcopyWithInputs (const std::vector< Output * > &inputs) override
 
- Public Member Functions inherited from mir::ops::ReduceOp
const std::vector< int > & getReductionDims () const
 
bool getKeepDims () const
 
- 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)
 

Additional Inherited Members

- Public Types inherited from mir::Operation
enum class  Type { HANDLE_OP }
 
- Protected Member Functions inherited from mir::ops::ReduceOp
 ReduceOp (Type type, Output *arg, const std::vector< int > &reduction_dims, bool keep_dims)
 
- 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)
 

Detailed Description

Definition at line 28 of file ReduceMeanOp.h.

Constructor & Destructor Documentation

◆ ReduceMeanOp()

mir::ops::ReduceMeanOp::ReduceMeanOp ( Output arg,
const std::vector< int > &  reduction_dims,
bool  keep_dims 
)
inline

Definition at line 31 of file ReduceMeanOp.h.

32 : ReduceOp(Type::reduceMean, arg, reduction_dims, keep_dims)
33 {
34 }
ReduceOp(Type type, Output *arg, const std::vector< int > &reduction_dims, bool keep_dims)
Definition ReduceOp.h:31

Member Function Documentation

◆ copyWithInputs()

Operation * mir::ops::ReduceMeanOp::copyWithInputs ( const std::vector< Output * > &  inputs)
inlineoverridevirtual

Implements mir::Operation.

Definition at line 36 of file ReduceMeanOp.h.

37 {
38 return new ReduceMeanOp(inputs[0], getReductionDims(), getKeepDims());
39 }
ReduceMeanOp(Output *arg, const std::vector< int > &reduction_dims, bool keep_dims)
const std::vector< int > & getReductionDims() const
Definition ReduceOp.h:38
bool getKeepDims() const
Definition ReduceOp.h:40

References mir::ops::ReduceOp::getKeepDims(), and mir::ops::ReduceOp::getReductionDims().


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