ONE - On-device Neural Engine
|
#include <IRBuilder.h>
Public Member Functions | |
OpBuilder (coco::Module *module) | |
bool | empty (void) const |
Return true if the internal stack is empty. | |
coco::Op * | top (void) const |
Return the operation at the top of the internal stack. | |
OpBuilder & | push (coco::Op *op) |
Push op onto the internal stack. | |
OpBuilder & | load (coco::Object *obj) |
Create "Load" op and push it onto the internal stack. | |
OpBuilder & | add (void) |
Create "Add" op and push it onto the internal stack. | |
OpBuilder & | sub (void) |
Create "Sub" op and push it onto the internal stack. | |
OpBuilder & | mul (void) |
Create "Mul" op and push it onto the internal stack. | |
OpBuilder & | div (void) |
Create "Div" op and push it onto the internal stack. | |
coco::Op * | pop (void) |
Pop op from the internal stack. | |
OpBuilder (coco::Module *module) | |
bool | empty (void) const |
Return true if the internal stack is empty. | |
coco::Op * | top (void) const |
Return the operation at the top of the internal stack. | |
OpBuilder & | push (coco::Op *op) |
Push op onto the internal stack. | |
OpBuilder & | load (coco::Object *obj) |
Create "Load" op and push it onto the internal stack. | |
OpBuilder & | add (void) |
Create "Add" op and push it onto the internal stack. | |
OpBuilder & | mul (void) |
Create "Mul" op and push it onto the internal stack. | |
coco::Op * | pop (void) |
Pop op from the internal stack. | |
coco IR builders
Definition at line 28 of file IRBuilder.h.
|
inline |
Definition at line 31 of file IRBuilder.h.
|
inline |
Definition at line 33 of file IRBuilder.h.
|
inline |
Create "Add" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Add(Left, Right); Stack
Definition at line 84 of file IRBuilder.h.
Referenced by caffeimport::BatchNormBuilder::build(), caffeimport::ConvolutionBuilder::build(), caffeimport::EltwiseBuilder::build(), caffeimport::ScaleBuilder::build(), tflimport::Conv2DGraphBuilder::build(), and tflimport::DepthwiseConv2DGraphBuilder::build().
|
inline |
Create "Add" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Add(Left, Right); Stack
Definition at line 86 of file IRBuilder.h.
|
inline |
Create "Div" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Div(Left, Right); Stack
Definition at line 108 of file IRBuilder.h.
Referenced by caffeimport::BatchNormBuilder::build().
|
inline |
Return true if the internal stack is empty.
Definition at line 41 of file IRBuilder.h.
|
inline |
Return true if the internal stack is empty.
Definition at line 43 of file IRBuilder.h.
|
inline |
Create "Load" op and push it onto the internal stack.
BEFORE| Stack AFTER | Load(obj); Stack
Definition at line 70 of file IRBuilder.h.
References coco::OpManager::create(), coco::Module::entity(), coco::Load::object(), coco::EntityManager::op(), and push().
Referenced by caffeimport::BatchNormBuilder::build(), caffeimport::ConcatBuilder::build(), caffeimport::ConvolutionBuilder::build(), caffeimport::EltwiseBuilder::build(), caffeimport::PoolingBuilder::build(), caffeimport::ReLUBuilder::build(), caffeimport::ScaleBuilder::build(), tflimport::AvgPool2DGraphBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), tflimport::DivGraphBuilder::build(), tflimport::MaxPool2DGraphBuilder::build(), tflimport::ReLUGraphBuilder::build(), tflimport::ReLU6GraphBuilder::build(), tflimport::SubGraphBuilder::build(), tflimport::Conv2DGraphBuilder::build(), tflimport::DepthwiseConv2DGraphBuilder::build(), and tflimport::build_activation().
|
inline |
Create "Load" op and push it onto the internal stack.
BEFORE| Stack AFTER | Load(obj); Stack
Definition at line 72 of file IRBuilder.h.
References coco::OpManager::create(), coco::Module::entity(), coco::Load::object(), coco::EntityManager::op(), and push().
|
inline |
Create "Mul" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Mul(Left, Right); Stack
Definition at line 100 of file IRBuilder.h.
Referenced by caffeimport::BatchNormBuilder::build(), caffeimport::EltwiseBuilder::build(), and caffeimport::ScaleBuilder::build().
|
inline |
Create "Mul" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Mul(Left, Right); Stack
Definition at line 94 of file IRBuilder.h.
|
inline |
Pop op from the internal stack.
BEFORE| Op; Stack AFTER | Stack
Definition at line 116 of file IRBuilder.h.
Referenced by caffeimport::BatchNormBuilder::build(), caffeimport::ConcatBuilder::build(), caffeimport::ConvolutionBuilder::build(), caffeimport::EltwiseBuilder::build(), caffeimport::PoolingBuilder::build(), caffeimport::ReLUBuilder::build(), caffeimport::ScaleBuilder::build(), tflimport::AvgPool2DGraphBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), tflimport::DivGraphBuilder::build(), tflimport::MaxPool2DGraphBuilder::build(), tflimport::ReLUGraphBuilder::build(), tflimport::ReLU6GraphBuilder::build(), tflimport::SubGraphBuilder::build(), tflimport::Conv2DGraphBuilder::build(), tflimport::DepthwiseConv2DGraphBuilder::build(), and tflimport::build_activation().
|
inline |
Pop op from the internal stack.
BEFORE| Op; Stack AFTER | Stack
Definition at line 102 of file IRBuilder.h.
Push op onto the internal stack.
BEFORE| Stack AFTER | Op; Stack
Definition at line 58 of file IRBuilder.h.
Referenced by caffeimport::EltwiseBuilder::build(), and load().
Push op onto the internal stack.
BEFORE| Stack AFTER | Op; Stack
Definition at line 60 of file IRBuilder.h.
|
inline |
Create "Sub" op and push it onto the internal stack.
BEFORE| Left; Right; Stack AFTER | Sub(Left, Right); Stack
Definition at line 92 of file IRBuilder.h.
Referenced by caffeimport::BatchNormBuilder::build().
|
inline |
Return the operation at the top of the internal stack.
Definition at line 46 of file IRBuilder.h.
|
inline |
Return the operation at the top of the internal stack.
Definition at line 48 of file IRBuilder.h.