ONE - On-device Neural Engine
|
Extracts and holds operand(tensor) information such as name, shape, and type. More...
#include <Context.h>
Public Member Functions | |
void | prepare (const tflite::SubGraph *graph) |
const std::string & | name (uint32_t tensor_id) |
const tensor::Shape & | shape (uint32_t tensor_id) |
const tflite::TensorType & | type (uint32_t tensor_id) |
Extracts and holds operand(tensor) information such as name, shape, and type.
|
inline |
Definition at line 43 of file Context.h.
Referenced by tflimport::set_module_inputs(), and tflimport::set_module_outputs().
void tflimport::TensorContext::prepare | ( | const tflite::SubGraph * | graph | ) |
Definition at line 35 of file Context.cpp.
References tflimport::as_tensor_shape(), and size.
|
inline |
Definition at line 44 of file Context.h.
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), RandomDataGenerator.RandomDataGenerator::_gen_uint8(), tflimport::AvgPool2DGraphBuilder::build(), tflimport::ConcatenationGraphBuilder::build(), tflimport::DivGraphBuilder::build(), tflimport::MaxPool2DGraphBuilder::build(), tflimport::ReLUGraphBuilder::build(), tflimport::ReLU6GraphBuilder::build(), tflimport::SubGraphBuilder::build(), tflimport::Conv2DGraphBuilder::build(), tflimport::DepthwiseConv2DGraphBuilder::build(), tflimport::set_module_inputs(), and tflimport::set_module_outputs().
|
inline |
Definition at line 45 of file Context.h.
Referenced by tflimport::copy_tensors().