SetWeight
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Sets the input matrix Weight for convolution backpropagation computation.
Prototype
1 | __aicore__ inline void SetWeight(const AscendC::GlobalTensor<SrcT> &weight) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
weight |
Input |
Start address of the Weight matrix in the global memory. The type is GlobalTensor. SrcT indicates the data type of the Weight matrix. Currently, the supported data types are half and bfloat16_t. |
Returns
None
Restrictions
None
Example
1 2 3 4 5 | const Conv3DBackpropInputTilingData* tilingData; //... Initialize tilingData. ConvBackpropApi::Conv3DBackpropInput<weightDxType, inputSizeDxType, gradOutputDxType, gradInputDxType> gradInput_; //... Set other parameters. gradInput_.SetWeight(weightGm_[offsetB_]); |
Parent topic: Conv3DBackpropInput Kernel API