ONE - On-device Neural Engine
|
Class to build tensor data. More...
#include <CircleConst.h>
Public Member Functions | |
template<loco::DataType DT> | |
uint32_t | size (void) const |
template<loco::DataType DT> | |
void | size (uint32_t size) |
template<loco::DataType DT> | |
const loco::DataTypeImpl< DT >::Type & | at (uint32_t n) const |
template<loco::DataType DT> | |
loco::DataTypeImpl< DT >::Type & | at (uint32_t n) |
template<loco::DataType DT> | |
const loco::DataTypeImpl< DT >::Type & | scalar (void) const |
template<loco::DataType DT> | |
loco::DataTypeImpl< DT >::Type & | scalar (void) |
Public Member Functions inherited from luci::FixedArityNode< 0, CircleNodeImpl< CircleOpcode::CIRCLECONST > > | |
FixedArityNode () | |
virtual | ~FixedArityNode ()=default |
uint32_t | arity (void) const final |
loco::Node * | arg (uint32_t n) const final |
void | drop (void) final |
Public Member Functions inherited from luci::CircleNodeImpl< CircleOpcode::CIRCLECONST > | |
virtual | ~CircleNodeImpl ()=default |
uint32_t | opnum (void) const final |
CircleOpcode | opcode (void) const final |
Public Member Functions inherited from luci::CircleNode | |
virtual | ~CircleNode ()=default |
const loco::Dialect * | dialect (void) const final |
Return "Dialect" identifier that this node belongs to. | |
template<typename T > | |
T | accept (CircleNodeVisitorBase< T > *) const |
template<typename T > | |
T | accept (CircleNodeMutableVisitorBase< T > *) |
NodeName | name (void) const |
void | name (const NodeName &name) |
CircleQuantParam * | quantparam (void) const |
void | quantparam (std::unique_ptr< CircleQuantParam > &&quantparam) |
SparsityParam * | sparsityparam (void) const |
void | sparsityparam (std::unique_ptr< SparsityParam > &&sparsityparam) |
ShapeStatus | shape_status (void) const |
void | shape_status (ShapeStatus ss) |
int32_t | op_version (void) const |
void | op_version (int32_t op_version) |
Public Member Functions inherited from loco::Node | |
Node ()=default | |
Node (const Node &)=delete | |
Node (Node &&)=delete | |
virtual | ~Node () |
Graph * | graph (void) |
const Graph * | graph (void) const |
Public Member Functions inherited from loco::AnnotatedItem< NodeAnnotation > | |
AnnotatedItem ()=default | |
virtual | ~AnnotatedItem ()=default |
const T * | annot (void) const |
Retrieve a stored annotation of type T. | |
void | annot (std::unique_ptr< T > &&p) |
Attach or remove a new annotation of type T. | |
Additional Inherited Members | |
Protected Member Functions inherited from luci::FixedArityNode< 0, CircleNodeImpl< CircleOpcode::CIRCLECONST > > | |
loco::Use * | at (uint32_t n) const |
Class to build tensor data.
Definition at line 34 of file CircleConst.h.
loco::DataTypeImpl< DT >::Type & luci::CircleConst::at | ( | uint32_t | n | ) |
Definition at line 45 of file CircleConst.cpp.
const loco::DataTypeImpl< DT >::Type & luci::CircleConst::at | ( | uint32_t | n | ) | const |
Definition at line 38 of file CircleConst.cpp.
Referenced by luci::asymmetric_wquant_with_minmax_per_layer(), luci::sinf::BuildStridedSliceParams(), luci::create_const_node(), luci::create_const_node(), luci::quant_const(), luci::FuseBCQPass::run(), luci::SparsifyTensorPass::sparsify_tensor(), luci::swap_mul_add(), and luci::symmetric_wquant_with_minmax_per_layer().
loco::DataTypeImpl< DT >::Type & luci::CircleConst::scalar | ( | void | ) |
Definition at line 59 of file CircleConst.cpp.
const loco::DataTypeImpl< DT >::Type & luci::CircleConst::scalar | ( | void | ) | const |
Definition at line 53 of file CircleConst.cpp.
void luci::CircleConst::size | ( | uint32_t | size | ) |
Definition at line 31 of file CircleConst.cpp.
uint32_t luci::CircleConst::size | ( | void | ) | const |
Definition at line 24 of file CircleConst.cpp.
Referenced by luci::asymmetric_wquant_with_minmax_per_layer(), is_1D_float32_const(), luci::quant_const(), luci::FuseBCQPass::run(), luci::SparsifyTensorPass::sparsify_tensor(), luci::swap_mul_add(), and luci::symmetric_wquant_with_minmax_per_layer().