Class ModelMetadataTensor¶
Defined in File predict_api.hpp
Class Documentation¶
-
class ModelMetadataTensor¶
This class holds the metadata associated with an input tensor.
Public Functions
-
ModelMetadataTensor(const std::string &name, DataType datatype, std::vector<uint64_t> shape)¶
Construct a new Model Metadata Tensor object.
- Parameters
name – name of the tensor
datatype – the datatype this tensor accepts
shape – the expected shape of the data
-
const std::string &getName() const¶
Gets the name of the tensor.
-
const std::vector<uint64_t> &getShape() const¶
Gets the expected shape of the data.
-
ModelMetadataTensor(const std::string &name, DataType datatype, std::vector<uint64_t> shape)¶