ONE - On-device Neural Engine
|
#include <MirInterpreter.h>
Public Member Functions | |
MIRInterpreter ()=default | |
~MIRInterpreter () override=default | |
void | setTensor (const mir::Operation::Output *output, mir::TensorVariant tensor) |
Set tensor to the interpreter environment. | |
const mir::TensorVariant & | getTensor (const mir::Operation::Output *) const |
Get tensor from the interpreter environment. | |
void | visit (mir::ops::AddOp &op) override |
void | visit (mir::ops::AbsOp &op) override |
void | visit (mir::ops::AvgPool2DOp &op) override |
void | visit (mir::ops::CappedReluOp &op) override |
void | visit (mir::ops::ConcatOp &op) override |
void | visit (mir::ops::ConstantOp &op) override |
void | visit (mir::ops::Conv2DOp &op) override |
void | visit (mir::ops::DeConv2DOp &op) override |
void | visit (mir::ops::DepthwiseConv2DOp &op) override |
void | visit (mir::ops::DequantizeOp &op) override |
void | visit (mir::ops::DivOp &op) override |
void | visit (mir::ops::EluOp &op) override |
void | visit (mir::ops::EqualOp &op) override |
void | visit (mir::ops::FullyConnectedOp &op) override |
void | visit (mir::ops::GatherOp &op) override |
void | visit (mir::ops::GreaterOp &op) override |
void | visit (mir::ops::HardSwishOp &op) override |
void | visit (mir::ops::InputOp &op) override |
void | visit (mir::ops::LeakyReluOp &op) override |
void | visit (mir::ops::LessOp &op) override |
void | visit (mir::ops::MaxOp &op) override |
void | visit (mir::ops::MaxPool2DOp &op) override |
void | visit (mir::ops::MulOp &op) override |
void | visit (mir::ops::OutputOp &op) override |
void | visit (mir::ops::PadOp &op) override |
void | visit (mir::ops::QuantizeOp &op) override |
void | visit (mir::ops::ReduceMeanOp &op) override |
void | visit (mir::ops::ReluOp &op) override |
void | visit (mir::ops::ReshapeOp &op) override |
void | visit (mir::ops::ResizeOp &op) override |
void | visit (mir::ops::SigmoidOp &op) override |
void | visit (mir::ops::SliceOp &op) override |
void | visit (mir::ops::SoftmaxOp &op) override |
void | visit (mir::ops::SqrtOp &op) override |
void | visit (mir::ops::SqueezeOp &op) override |
void | visit (mir::ops::SubOp &op) override |
void | visit (mir::ops::TanhOp &op) override |
void | visit (mir::ops::TransposeOp &op) override |
void | visit (mir::ops::BroadcastOp &op) override |
Public Member Functions inherited from mir::IVisitor | |
virtual | ~IVisitor ()=default |
Protected Member Functions | |
void | visit_fallback (mir::Operation &op) override |
Definition at line 29 of file MirInterpreter.h.
|
explicitdefault |
|
overridedefault |
const TensorVariant & mir_interpreter::MIRInterpreter::getTensor | ( | const mir::Operation::Output * | ) | const |
Get tensor from the interpreter environment.
Definition at line 88 of file MirInterpreter.cpp.
void mir_interpreter::MIRInterpreter::setTensor | ( | const mir::Operation::Output * | output, |
mir::TensorVariant | tensor | ||
) |
Set tensor to the interpreter environment.
Definition at line 67 of file MirInterpreter.cpp.
Referenced by visit().
|
override |
Definition at line 404 of file MirInterpreter.cpp.
References mir_interpreter::Abs().
|
override |
Definition at line 327 of file MirInterpreter.cpp.
References mir_interpreter::Add().
|
override |
Definition at line 126 of file MirInterpreter.cpp.
References AvgPool2D.
|
override |
Definition at line 411 of file MirInterpreter.cpp.
References mir::Operation::getOutputShape().
|
override |
Definition at line 202 of file MirInterpreter.cpp.
References mir_interpreter::CappedReLU(), and mir::ops::CappedReluOp::getCap().
|
override |
Definition at line 135 of file MirInterpreter.cpp.
References mir_interpreter::Concat(), and mir::ops::ConcatOp::getAxis().
|
override |
Definition at line 133 of file MirInterpreter.cpp.
References mir::Operation::getOutput(), mir::ops::ConstantOp::getValue(), and setTensor().
|
override |
Definition at line 142 of file MirInterpreter.cpp.
References mir_interpreter::Conv2D(), and mir::ops::Conv2DOp::getAttributes().
|
override |
Definition at line 236 of file MirInterpreter.cpp.
References mir_interpreter::DeConv2D(), and mir::ops::DeConv2DOp::getAttributes().
|
override |
Definition at line 209 of file MirInterpreter.cpp.
References DepthwiseConv2D.
|
override |
Definition at line 362 of file MirInterpreter.cpp.
References mir_interpreter::Dequantize().
|
override |
Definition at line 334 of file MirInterpreter.cpp.
References mir_interpreter::Div().
|
override |
Definition at line 243 of file MirInterpreter.cpp.
References mir_interpreter::ELU(), and mir::ops::EluOp::getAlpha().
|
override |
Definition at line 397 of file MirInterpreter.cpp.
References mir_interpreter::Equal().
|
override |
Definition at line 190 of file MirInterpreter.cpp.
References mir_interpreter::FullyConnected().
|
override |
Definition at line 308 of file MirInterpreter.cpp.
References mir_interpreter::Gather().
|
override |
Definition at line 383 of file MirInterpreter.cpp.
References mir_interpreter::Greater().
|
override |
Definition at line 376 of file MirInterpreter.cpp.
References mir_interpreter::HardSwish().
|
override |
Definition at line 121 of file MirInterpreter.cpp.
References mir::Operation::getOutput().
|
override |
Definition at line 315 of file MirInterpreter.cpp.
References mir::ops::LeakyReluOp::getAlpha(), and mir_interpreter::LeakyReLU().
|
override |
Definition at line 390 of file MirInterpreter.cpp.
References mir_interpreter::Less().
|
override |
Definition at line 341 of file MirInterpreter.cpp.
References Max.
|
override |
Definition at line 154 of file MirInterpreter.cpp.
References MaxPool2D.
|
override |
Definition at line 348 of file MirInterpreter.cpp.
References mir_interpreter::Mul().
|
override |
Definition at line 322 of file MirInterpreter.cpp.
References mir::Operation::getInput().
|
override |
Definition at line 258 of file MirInterpreter.cpp.
References mir_interpreter::Pad().
|
override |
Definition at line 369 of file MirInterpreter.cpp.
References mir_interpreter::Quantize().
|
override |
Definition at line 294 of file MirInterpreter.cpp.
References mir_interpreter::ReduceMean().
|
override |
Definition at line 168 of file MirInterpreter.cpp.
References mir_interpreter::ReLU().
|
override |
Definition at line 161 of file MirInterpreter.cpp.
References mir_interpreter::Reshape().
|
override |
Definition at line 272 of file MirInterpreter.cpp.
References mir::Index::at(), mir_interpreter::Fill(), mir::ops::ResizeOp::getMode(), mir::ops::ResizeOp::getScales(), and mir::Index::resize().
|
override |
Definition at line 175 of file MirInterpreter.cpp.
References mir_interpreter::Sigmoid().
|
override |
Definition at line 221 of file MirInterpreter.cpp.
References mir::ops::SliceOp::getStarts(), and mir_interpreter::Slice().
|
override |
Definition at line 182 of file MirInterpreter.cpp.
References mir::ops::SoftmaxOp::getAxis(), and mir_interpreter::Softmax().
|
override |
Definition at line 265 of file MirInterpreter.cpp.
References mir_interpreter::Sqrt().
|
override |
Definition at line 250 of file MirInterpreter.cpp.
References mir_interpreter::Reshape().
|
override |
Definition at line 355 of file MirInterpreter.cpp.
References mir_interpreter::Sub().
|
override |
Definition at line 229 of file MirInterpreter.cpp.
References mir_interpreter::Tanh().
|
override |
Definition at line 301 of file MirInterpreter.cpp.
References mir_interpreter::Transpose().
|
overrideprotectedvirtual |
Reimplemented from mir::Visitor.
Definition at line 418 of file MirInterpreter.cpp.