get_data_size
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Obtains the data size of a tensor.
Prototype
1 | get_data_size(self) -> int |
Parameters
None
Returns
Data size of a tensor
Exception Handling
None
Constraints
This API modifies the returned TensorDesc, which does not affect the existing TensorDesc information in the Tensor object.
Parent topic: Tensor Class