SetGradOutput
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function Usage
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
Examples
1 2 3 4 5 | ConvBackpropApi::Conv3DBackpropInput<weightDxType, inputSizeDxType, gradOutputDxType, gradInputDxType> gradInput_; // Set the address of the GlobalTensor in GradOutput. GlobalTensor<gradOutputType> gradOutputGm_; gradOutputGm_.SetGlobalBuffer((__gm__ gradOutputType *)gradOutput); gradInput_.SetGradOutput(gradOutputGm_); |
Parent topic: Conv3DBackpropInput Kernel APIs