IsPrivateFormat
函数功能
判断输入的format是否为私有格式。
函数原型
bool IsPrivateFormat(Format format)
返回值说明
format为私有格式返回true,否则返回false。
约束说明
无
调用示例
1 2 3 4 5 6 |
// 判断当input的storage format为私有格式时,返回 void Func(const aclTensor *input) { if (IsPrivateFormat(input->GetStorageFormat())) { return; } } |
父主题: format_utils