IsEmpty
Function Usage
Checks whether an aclTensor is empty.
Prototype
bool IsEmpty()
Parameters
None
Returns
true is returned if the aclTensor is empty. Otherwise, false is returned.
Constraints
None
Example
1 2 3 4 5 6 7 | // If the input is an empty tensor, a return statement is executed. Otherwise, its data type is obtained. void Func(const aclTensor *input) { if (input->IsEmpty()) { return; } op::DataType dataType = input->GetDataType(); } |
Parent topic: common_types