GetSizeInBytes
Description
Obtains the total memory size occupied by data_type (number specified by element_cout) based on the input element_cout and data_type.
Prototype
int64_t GetSizeInBytes(int64_t element_count, DataType data_type)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
element_count |
Input |
Number of data_type. |
data_type |
Input |
Data type. For details, see DataType. |
Returns
If the input number is invalid or the input data type is not supported, -1 is returned.
Exception Handling
None
Restrictions
None
Parent topic: GE Namespace