ONE - On-device Neural Engine
|
#include <DotNodeBuilder.h>
Public Member Functions | |
DotNodeBuilder (const Operation &op) | |
void | visit (ops::AvgPool2DOp &op) override |
void | visit (ops::CappedReluOp &op) override |
void | visit (ops::ConcatOp &op) override |
void | visit (ops::Conv2DOp &op) override |
void | visit (ops::DeConv2DOp &op) override |
void | visit (ops::DepthwiseConv2DOp &op) override |
void | visit (ops::EluOp &op) override |
void | visit (ops::GatherOp &op) override |
void | visit (ops::LeakyReluOp &op) override |
void | visit (ops::MaxPool2DOp &op) override |
void | visit (ops::PadOp &op) override |
void | visit (ops::ReduceMeanOp &op) override |
void | visit (ops::ResizeOp &op) override |
void | visit (ops::SliceOp &op) override |
void | visit (ops::SoftmaxOp &op) override |
void | visit (ops::SqueezeOp &op) override |
void | visit (ops::TransposeOp &op) override |
void | addAttribute (std::string name, std::string val) |
DotNode | getDotNode () const |
Public Member Functions inherited from mir::IVisitor | |
virtual | ~IVisitor ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from mir::Visitor | |
virtual void | visit_fallback (Operation &) |
Definition at line 31 of file DotNodeBuilder.h.
|
explicit |
Definition at line 38 of file DotNodeBuilder.cpp.
References mir::Operation::getId(), mir::Operation::getInputShape(), mir::Operation::getNumInputs(), mir::Operation::getNumOutputs(), mir::Operation::getOutputShape(), mir::Operation::getType(), mir::getTypeName(), and mir::toString().
void mir::DotNodeBuilder::addAttribute | ( | std::string | name, |
std::string | val | ||
) |
|
inline |
Definition at line 56 of file DotNodeBuilder.h.
Referenced by mir::dumpGraph().
|
override |
Definition at line 57 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::AvgPool2DOp::getIncludePad(), mir::ops::AvgPool2DOp::getPaddingAfter(), mir::ops::AvgPool2DOp::getPaddingBefore(), mir::ops::AvgPool2DOp::getStrides(), mir::ops::AvgPool2DOp::getWindowSize(), and mir::toString().
|
override |
Definition at line 66 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::CappedReluOp::getCap().
|
override |
Definition at line 71 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::ConcatOp::getAxis().
|
override |
Definition at line 76 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::Conv2DOp::getDataFormat(), mir::ops::Conv2DOp::getNumGroups(), mir::ops::Conv2DOp::getPaddingAfter(), mir::ops::Conv2DOp::getPaddingBefore(), mir::ops::Conv2DOp::getStrides(), and mir::toString().
|
override |
Definition at line 113 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::DeConv2DOp::getDataFormat(), mir::ops::DeConv2DOp::getPaddingAfter(), mir::ops::DeConv2DOp::getPaddingBefore(), mir::ops::DeConv2DOp::getStrides(), and mir::toString().
|
override |
Definition at line 85 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::DepthwiseConv2DOp::getDataFormat(), mir::ops::DepthwiseConv2DOp::getPaddingAfter(), mir::ops::DepthwiseConv2DOp::getPaddingBefore(), mir::ops::DepthwiseConv2DOp::getStrides(), and mir::toString().
|
override |
Definition at line 121 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::EluOp::getAlpha().
|
override |
Definition at line 154 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::GatherOp::getAxis().
|
override |
Definition at line 159 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::LeakyReluOp::getAlpha().
|
override |
Definition at line 93 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::MaxPool2DOp::getDataFormat(), mir::ops::MaxPool2DOp::getPaddingAfter(), mir::ops::MaxPool2DOp::getPaddingBefore(), mir::ops::MaxPool2DOp::getStrides(), mir::ops::MaxPool2DOp::getWindowSize(), and mir::toString().
|
override |
Definition at line 128 of file DotNodeBuilder.cpp.
References mir::ops::PadOp::getPaddingAfter(), mir::ops::PadOp::getPaddingBefore(), mir::ops::PadOp::getPaddingValue(), and mir::toString().
|
override |
Definition at line 135 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::ReduceOp::getKeepDims(), mir::ops::ReduceOp::getReductionDims(), and mir::toString().
|
override |
Definition at line 141 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::ResizeOp::getMode(), and mir::ops::ResizeOp::nearestNeighbor.
|
override |
Definition at line 107 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::SliceOp::getSizes(), mir::ops::SliceOp::getStarts(), and mir::toString().
|
override |
Definition at line 102 of file DotNodeBuilder.cpp.
References addAttribute(), and mir::ops::SoftmaxOp::getAxis().
|
override |
Definition at line 123 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::SqueezeOp::getDimsToSqueeze(), and mir::toString().
|
override |
Definition at line 149 of file DotNodeBuilder.cpp.
References addAttribute(), mir::ops::TransposeOp::getAxisOrder(), and mir::toString().