SetGradOutput
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Sets the input matrix GradOutput for convolution backpropagation computation.
Prototype
1 | __aicore__ inline void SetGradOutput(const AscendC::GlobalTensor<SrcT> &gradOutput) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
gradOutput |
Input |
Start address of the GradOutput matrix in the global memory. The type is GlobalTensor. SrcT indicates the data type of the GradOutput matrix. Currently, the supported data types are half and bfloat16_t. |
Returns
None
Restrictions
None
Example
1 2 3 4 5 6 7 8 | const Conv3DBackpropFilterTilingData* tilingData; //... Initialize tilingData. ConvBackpropApi::Conv3DBackpropFilter <inputType, weightSizeType, gradOutputType, gradWeightType> gradWeight_; gradWeight_.Init(&(tilingData->dwTiling)); gradWeight_.SetInput(inputGm_[offsetB_]); // Set gradOutput. gradWeight_.SetGradOutput(gradOutputGm_[offsetA_]); ... |
Parent topic: Conv3DBackpropFilter Kernel API