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 |
Function Usage |
|---|---|
ToDataType(const std::string &dataTypeStr) |
Converts the given string to op::DataType (that is, 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. |
Parent topic: data_type_utils