判断输入的format是否为私有格式。
bool IsPrivateFormat(Format format)
参数 |
输入/输出 |
说明 |
---|---|---|
format |
输入 |
待校验的数据格式,数据类型为op::Format(即ge::Format)。 |
format为私有格式返回true,否则返回false。
无
1 2 3 4 5 6 |
// 判断当input的storage format为私有格式时,返回 void Func(const aclTensor *input) { if (IsPrivateFormat(input->GetStorageFormat())) { return; } } |