ONE - On-device Neural Engine
|
Class to store tensor information parsed from test.info file under moco/test/tf. More...
#include <ParsedTensor.h>
Public Types | |
enum class | Kind { Input , Output } |
Public Member Functions | |
ParsedTensor ()=delete | |
ParsedTensor (const Kind kind, const std::string &name, const DataType &dtype, const std::vector< int32_t > &shape) | |
~ParsedTensor () | |
Kind | kind () const |
const std::string & | name () |
const nncc::core::ADT::tensor::Shape & | shape () const |
nncc::core::ADT::tensor::Shape & | mutable_shape () |
const DataType & | dtype () const |
std::string | nodeName () const |
Get the name of node that has this tensor. E.g., if the name of this tensor is "MyOp:0", this method returns "MyOp". | |
int | tensorIndex () const |
Get the index from the tensor name. E.g., if the name of this tensor is "MyOp:12", this method returns 12. | |
bool | isFloatTensor () const |
bool | hasShape () const |
Class to store tensor information parsed from test.info file under moco/test/tf.
Definition at line 47 of file ParsedTensor.h.
|
strong |
|
delete |
|
inline |
Definition at line 58 of file ParsedTensor.h.
References nncc::core::ADT::tensor::Shape::dim(), name(), nncc::core::ADT::tensor::Shape::resize(), and shape().
|
inline |
Definition at line 69 of file ParsedTensor.h.
|
inline |
Definition at line 83 of file ParsedTensor.h.
|
inline |
Definition at line 108 of file ParsedTensor.h.
|
inline |
Definition at line 107 of file ParsedTensor.h.
Referenced by nnkit::support::tf::TensorDataMap::allocate().
|
inline |
Definition at line 74 of file ParsedTensor.h.
|
inline |
Definition at line 81 of file ParsedTensor.h.
|
inline |
Definition at line 76 of file ParsedTensor.h.
Referenced by ParsedTensor().
|
inline |
Get the name of node that has this tensor. E.g., if the name of this tensor is "MyOp:0", this method returns "MyOp".
Definition at line 89 of file ParsedTensor.h.
|
inline |
Definition at line 78 of file ParsedTensor.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), nnkit::support::tf::TensorDataMap::allocate(), and ParsedTensor().
|
inline |
Get the index from the tensor name. E.g., if the name of this tensor is "MyOp:12", this method returns 12.
Definition at line 95 of file ParsedTensor.h.