|
ONE - On-device Neural Engine
|
Resize operation scales are such that output = input * scale for each dimension and the number of dimensions matches. More...
#include <ResizeOp.h>

Public Types | |
| enum class | ResizeMethod { nearestNeighbor } |
Public Types inherited from mir::Operation | |
| enum class | Type { HANDLE_OP } |
Public Member Functions | |
| ResizeOp (Output *arg, ResizeMethod mode, const std::vector< float > &scales) | |
| Operation * | copyWithInputs (const std::vector< Output * > &inputs) override |
| ResizeOp (Output *arg, ResizeMethod mode, const Shape &output_shape) | |
| ResizeMethod | getMode () const |
| const std::vector< float > & | getScales () 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 |
| Output * | getInput (std::size_t index) |
| const Output * | getInput (std::size_t index) const |
| Output * | getOutput (std::size_t index) |
| const Output * | getOutput (std::size_t index) const |
| const Shape & | getInputShape (std::size_t index) const |
| const Shape & | getOutputShape (std::size_t index) const |
| void | accept (IVisitor *v) |
Additional Inherited Members | |
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) |
Resize operation scales are such that output = input * scale for each dimension and the number of dimensions matches.
Definition at line 34 of file ResizeOp.h.
|
strong |
|
inline |
Definition at line 42 of file ResizeOp.h.
|
inline |
Definition at line 63 of file ResizeOp.h.
|
inlineoverridevirtual |
Implements mir::Operation.
Definition at line 58 of file ResizeOp.h.
References mir::Operation::getOutputShape().
|
inline |
Definition at line 75 of file ResizeOp.h.
Referenced by mir_interpreter::MIRInterpreter::visit(), nnc::ModelAnalyzer::visit(), and mir::DotNodeBuilder::visit().
|
inline |
Definition at line 77 of file ResizeOp.h.
Referenced by mir_interpreter::MIRInterpreter::visit().