|
ONE - On-device Neural Engine
|
Base class for NN model arguments (Input/Output) More...
#include <Arg.h>
Public Member Functions | |
| Arg (const nncc::core::ADT::tensor::Shape &shape) | |
| virtual | ~Arg ()=default |
| const nncc::core::ADT::tensor::Shape & | shape (void) const |
| const std::string & | name (void) const |
| void | name (const std::string &s) |
| Bag * | bag (void) const |
| void | bag (Bag *) |
| ElemID & | at (const nncc::core::ADT::tensor::Index &) |
| const ElemID & | at (const nncc::core::ADT::tensor::Index &) const |
| void | reorder (const nncc::core::ADT::tensor::Layout &l) |
| template<typename LayoutImpl > | |
| void | reorder (void) |
Protected Member Functions | |
| virtual void | onTake (Bag *) |
| virtual void | onRelease (Bag *) |
|
explicit |
Definition at line 34 of file Arg.cpp.
References nncc::core::ADT::tensor::num_elements(), and shape().
|
virtualdefault |
| ElemID & coco::Arg::at | ( | const nncc::core::ADT::tensor::Index & | index | ) |
| const ElemID & coco::Arg::at | ( | const nncc::core::ADT::tensor::Index & | index | ) | const |
| void coco::Arg::bag | ( | Bag * | bag | ) |
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
| void coco::Arg::reorder | ( | const nncc::core::ADT::tensor::Layout & | l | ) |
|
inline |
|
inline |
Definition at line 45 of file Arg.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), Arg(), and reorder().