SetGradOutputShape

Function

Sets the GradOutput shape: Batch, Channel, Depth, Height, and Width.

Prototype

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

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

n

Input

Batch value of the input GradOutput.

c

Input

Channel value of the input GradOutput.

d

Input

Depth value of the input GradOutput.

h

Input

Height value of the input GradOutput.

w

Input

Width value of the input GradOutput.

Returns

true indicates that the setting is successful, and false indicates that the setting fails.

Restrictions

None

Example

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