ONE - On-device Neural Engine
|
#include <ONNXNodeConverterRegistry.h>
Public Member Functions | |
ConverterContext (mir::Graph *graph) | |
~ConverterContext ()=default | |
void | setOutput (const std::string &name, mir::Operation::Output *output) |
mir::Operation::Output * | getOutput (const std::string &name) const |
std::vector< mir::Operation::Output * > | getNodeInputs (const onnx::NodeProto &onnx_node) const |
void | setNodeOutputs (const onnx::NodeProto &onnx_node, const std::vector< mir::Operation::Output * > &outputs) |
mir::Graph * | getGraph () const |
Definition at line 42 of file ONNXNodeConverterRegistry.h.
|
explicit |
Definition at line 59 of file ONNXNodeConverterRegistry.cpp.
|
default |
|
inline |
Definition at line 53 of file ONNXNodeConverterRegistry.h.
Referenced by mir_onnx::convertAddV7(), mir_onnx::convertAveragePoolV1(), mir_onnx::convertBatchNormalizationV9(), mir_onnx::convertConcatV1(), mir_onnx::convertConcatV4(), mir_onnx::convertConstantV1(), mir_onnx::convertConvTransposeV1(), mir_onnx::convertConvV1(), mir_onnx::convertDivV7(), mir_onnx::convertEqualV11(), mir_onnx::convertExpandV8(), mir_onnx::convertFlattenV1(), mir_onnx::convertGatherV1(), mir_onnx::convertGlobalAveragePoolV2(), mir_onnx::convertMatMulV1(), mir_onnx::convertMaxPoolV1(), mir_onnx::convertMulV7(), mir_onnx::convertPadAttrName(), mir_onnx::convertReduceMeanV1(), mir_onnx::convertReshapeV1(), mir_onnx::convertReshapeV5(), mir_onnx::convertShapeV1(), mir_onnx::convertSoftmaxV1(), mir_onnx::convertSubV7(), mir_onnx::convertSumV8(), mir_onnx::convertTransposeV1(), mir_onnx::convertUnsqueezeV1(), mir_onnx::convertUpsampleV1(), mir_onnx::convertUpsampleV7(), and mir_onnx::convertUpsampleV9().
std::vector< mir::Operation::Output * > mir_onnx::ConverterContext::getNodeInputs | ( | const onnx::NodeProto & | onnx_node | ) | const |
Definition at line 79 of file ONNXNodeConverterRegistry.cpp.
References getOutput().
Referenced by mir_onnx::convertAddV7(), mir_onnx::convertAveragePoolV1(), mir_onnx::convertBatchNormalizationV9(), mir_onnx::convertConcatV1(), mir_onnx::convertConcatV4(), mir_onnx::convertConstantV1(), mir_onnx::convertConvTransposeV1(), mir_onnx::convertConvV1(), mir_onnx::convertDivV7(), mir_onnx::convertDropoutV10(), mir_onnx::convertEqualV11(), mir_onnx::convertExpandV8(), mir_onnx::convertFlattenV1(), mir_onnx::convertGatherV1(), mir_onnx::convertGlobalAveragePoolV2(), mir_onnx::convertIdentityV1(), mir_onnx::convertMatMulV1(), mir_onnx::convertMaxPoolV1(), mir_onnx::convertMulV7(), mir_onnx::convertPadAttrName(), mir_onnx::convertReduceMeanV1(), mir_onnx::convertReshapeV1(), mir_onnx::convertReshapeV5(), mir_onnx::convertShapeV1(), mir_onnx::convertSoftmaxV1(), mir_onnx::convertSubV7(), mir_onnx::convertSumV8(), mir_onnx::convertTransposeV1(), mir_onnx::convertUnsqueezeV1(), mir_onnx::convertUpsampleV1(), mir_onnx::convertUpsampleV7(), and mir_onnx::convertUpsampleV9().
mir::Operation::Output * mir_onnx::ConverterContext::getOutput | ( | const std::string & | name | ) | const |
Definition at line 69 of file ONNXNodeConverterRegistry.cpp.
Referenced by getNodeInputs().
void mir_onnx::ConverterContext::setNodeOutputs | ( | const onnx::NodeProto & | onnx_node, |
const std::vector< mir::Operation::Output * > & | outputs | ||
) |
Definition at line 96 of file ONNXNodeConverterRegistry.cpp.
References setOutput().
Referenced by mir_onnx::convertAddV7(), mir_onnx::convertAveragePoolV1(), mir_onnx::convertBatchNormalizationV9(), mir_onnx::convertConcatV1(), mir_onnx::convertConcatV4(), mir_onnx::convertConstantV1(), mir_onnx::convertConvTransposeV1(), mir_onnx::convertConvV1(), mir_onnx::convertDivV7(), mir_onnx::convertDropoutV10(), mir_onnx::convertEqualV11(), mir_onnx::convertExpandV8(), mir_onnx::convertFlattenV1(), mir_onnx::convertGatherV1(), mir_onnx::convertGlobalAveragePoolV2(), mir_onnx::convertIdentityV1(), mir_onnx::convertMatMulV1(), mir_onnx::convertMaxPoolV1(), mir_onnx::convertMulV7(), mir_onnx::convertPadAttrName(), mir_onnx::convertReduceMeanV1(), mir_onnx::convertReshapeV1(), mir_onnx::convertReshapeV5(), mir_onnx::convertShapeV1(), mir_onnx::convertSoftmaxV1(), mir_onnx::convertSubV7(), mir_onnx::convertSumV8(), mir_onnx::convertTransposeV1(), mir_onnx::convertUnsqueezeV1(), mir_onnx::convertUpsampleV1(), mir_onnx::convertUpsampleV7(), and mir_onnx::convertUpsampleV9().
void mir_onnx::ConverterContext::setOutput | ( | const std::string & | name, |
mir::Operation::Output * | output | ||
) |
Definition at line 61 of file ONNXNodeConverterRegistry.cpp.
Referenced by setNodeOutputs().