IsPrivateFormat
Function Usage
Checks whether the input format is a private format.
Prototype
bool IsPrivateFormat(Format format)
Parameters
Returns
If format is a private format, true is returned. Otherwise, false is returned.
Constraints
None
Example
1 2 3 4 5 6 |
// Check whether the storage format of the input is private. If yes, a return statement is executed. void Func(const aclTensor *input) { if (IsPrivateFormat(input->GetStorageFormat())) { return; } } |
Parent topic: format_utils