Skip to content

SetGradOutputShape

功能说明

设置GradOutput的形状:Batch、Channel、Depth、Height、Width。

函数原型

Text
bool SetGradOutputShape(int64_t n, int64_t c, int64_t d, int64_t h, int64_t w)

参数说明

表1 参数说明

参数名输入/输出描述
n输入输入GradOutput的Batch值。
c输入输入GradOutput的Channel值。
d输入输入GradOutput的Depth值。
h输入输入GradOutput的Height值。
w输入输入GradOutput的Width值。

返回值说明

true表示设置成功,false表示设置失败。

约束说明

调用示例

Text
auto ascendcPlatform = platform_ascendc::PlatformAscendCManager::GetInstance();
ConvBackpropApi::Conv3DBpInputTiling conv3DBpDxTiling(*ascendcPlatform);
conv3DBpDxTiling.SetGradOutputShape(n, c, d, h, w);

免责声明:本站内容由 asc-devkit 仓 master 分支自动编译生成,属于持续开发版本,可能存在缺陷,仅供预览与参考。如需稳定及商用资料,请查阅官方 昇腾社区