avgPooling4DGradient(_:source:descriptor:name:)
Creates an average pooling gradient operation and returns the result tensor.
Declaration
func avgPooling4DGradient(_ gradient: MPSGraphTensor, source: MPSGraphTensor, descriptor: MPSGraphPooling4DOpDescriptor, name: String?) -> MPSGraphTensorParameters
- gradient:
An input gradient tensor.
- source:
The input tensor for the forward pass.
- descriptor:
A pooling operation descriptor that specifies pooling window sizes, strides, dilation rates and paddings.
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object.