ONE - On-device Neural Engine
|
GraphBuilder for Constant(since version 1) node. More...
#include <Constant.h>
Public Member Functions | |
bool | validate (const ::onnx::NodeProto &) const |
void | build (const ::onnx::NodeProto &, GraphBuilderContext *) const |
GraphBuilder for Constant(since version 1) node.
Definition at line 29 of file Constant.h.
void moco::onnx::Constant_V1::build | ( | const ::onnx::NodeProto & | node, |
GraphBuilderContext * | context | ||
) | const |
Definition at line 39 of file Constant_V1.cpp.
References moco::onnx::as_loco_datatype(), loco::ConstGen::at(), moco::onnx::SymbolTable::enroll(), moco::onnx::GraphBuilderContext::graph(), and moco::onnx::GraphBuilderContext::nodes().
Referenced by moco::onnx::ConstantGraphBuilder::build().
bool moco::onnx::Constant_V1::validate | ( | const ::onnx::NodeProto & | node | ) | const |
Definition at line 27 of file Constant_V1.cpp.
References moco::onnx::tensor_dtype_as_string().
Referenced by moco::onnx::ConstantGraphBuilder::validate().