设置aclTensor的ViewFormat。ViewFormat为aclTensor的逻辑Format。
void SetViewFormat(op::Format format)
参数 |
输入/输出 |
说明 |
---|---|---|
format |
输入 |
数据类型为op::Format(即ge::Format),本身是一个枚举,包含多种不同的Format,例如NCHW、ND等。 |
无
无
1 2 3 4 |
// 将input的ViewFormat置为ND格式 void Func(const aclTensor *input) { input->SetViewFormat(ge::FORMAT_ND); } |