convolutionTranspose2DWeightsGradient(_:weights:outputShapeTensor:forwardConvolutionDescriptor:name:)
Creates a convolution transpose gradient operation with respect to the weights tensor of the convolution transpose operation and returns the result tensor.
Declaration
func convolutionTranspose2DWeightsGradient(_ incomingGradientTensor: MPSGraphTensor, weights source: MPSGraphTensor, outputShapeTensor outputShape: MPSGraphTensor, forwardConvolutionDescriptor: MPSGraphConvolution2DOpDescriptor, name: String?) -> MPSGraphTensorParameters
- incomingGradientTensor:
Incoming gradient tensor
- source:
Forward pass source tensor
- outputShape:
1D Int32 or Int64 Tensor. Shape of the forward pass source weights tensor
- forwardConvolutionDescriptor:
Forward pass op descriptor
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object
Discussion
Inserts an operation in graph to compute gradient of convolution transpose with respect to the weights tensor of the corresponding convolution transpose operation.