Contents

maxPooling4D(_:descriptor:name:)

Creates a 4D max-pooling operation and returns the result tensor.

Declaration

func maxPooling4D(_ source: MPSGraphTensor, descriptor: MPSGraphPooling4DOpDescriptor, name: String?) -> MPSGraphTensor

Parameters

  • source:

    A source tensor.

  • 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