Reserved APIs
The APIs described in this section are reserved and may be changed or deprecated in the future. They do not need your attention.
API Definition |
Function Usage |
|---|---|
ToDataType(const std::string &dataTypeStr) |
Converts the given string to op::DataType (ge::DataType). |
CalcShapeBytes(int64_t size, DataType dataType, bool ceil=false) |
Calculates the total size based on the given shape size and data type. |
CheckType(const DataType dtype, const std::initializer_list<DataType> &valid_types) |
Checks whether the data type is in the specified list. |
ToString(const std::initializer_list<DataType> &dataTypes) |
Serialize a list of DataType data types into a string in the format [DT_FLOAT, DT_INT32,]. |
Parent topic: data_type_utils