tvm
|
Describes one tensor argument to run_model
. NOTE: while TIR allows for other types of arguments, such as scalars, the AOT run_model function does not currently accept these. Therefore it's not possible to express those in this metadata. A future patch may modify this.
More...
#include <metadata_types.h>
Public Attributes | |
const char * | name |
Name of the tensor, as specified in the Relay program. More... | |
const int64_t * | shape |
Shape of the tensor. More... | |
int64_t | num_shape |
Rank of this tensor. More... | |
DLDataType | dtype |
Data type of one element of this tensor. More... | |
Describes one tensor argument to run_model
. NOTE: while TIR allows for other types of arguments, such as scalars, the AOT run_model function does not currently accept these. Therefore it's not possible to express those in this metadata. A future patch may modify this.
DLDataType TVMTensorInfo::dtype |
Data type of one element of this tensor.
const char* TVMTensorInfo::name |
Name of the tensor, as specified in the Relay program.
int64_t TVMTensorInfo::num_shape |
Rank of this tensor.
const int64_t* TVMTensorInfo::shape |
Shape of the tensor.