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