ONE - On-device Neural Engine
|
Data Structures | |
class | Constant_V1 |
GraphBuilder for Constant(since version 1) node. More... | |
class | Constant_V9 |
GraphBuilder for Constant(since version 9) node. More... | |
class | ConstantGraphBuilder |
GraphBuilder for Constant node. More... | |
class | Frontend |
class | GraphBuilder |
Parent class of onnx operation graph builders. More... | |
class | GraphBuilderContext |
Class to store context to build IR from onnx. More... | |
class | GraphBuilderRegistry |
Class to return graph builder for passed onnx Operator. More... | |
class | Identity_V1 |
GraphBuilder for Identity(since version 1) node. More... | |
class | IdentityGraphBuilder |
GraphBuilder for Identity node. More... | |
class | SymbolTable |
Class to store relations of Nodes and string names. More... | |
Functions | |
loco::DataType | as_loco_datatype (const int32_t tensor_dtype) |
std::string | tensor_dtype_as_string (const int32_t tensor_dtype) |
bool | is_default_domain (const std::string domain) |
If domain is empty string or onnx.ai, it is default domain. | |
std::vector< float > | get_float_data (const ::onnx::TensorProto &tensor) |
Get float tensor data. | |
loco::DataType moco::onnx::as_loco_datatype | ( | const int32_t | tensor_dtype | ) |
Definition at line 28 of file Convert.cpp.
Referenced by moco::onnx::Constant_V1::build(), and moco::onnx::Constant_V9::build().
std::vector< float > moco::onnx::get_float_data | ( | const ::onnx::TensorProto & | tensor | ) |
Get float tensor data.
[in] | tensor | Tensor to get float data |
Definition at line 48 of file Onnxutil.cpp.
bool moco::onnx::is_default_domain | ( | const std::string | domain | ) |
If domain is empty string or onnx.ai, it is default domain.
[in] | domain | The name of domain |
Definition at line 43 of file Onnxutil.cpp.
std::string moco::onnx::tensor_dtype_as_string | ( | const int32_t | tensor_dtype | ) |
Definition at line 68 of file Convert.cpp.
Referenced by moco::onnx::Constant_V1::validate().