• Computes the grayscale dilation over the input x.

    Type Parameters

    Parameters

    • x: TensorLike | T

      The input tensor, rank 3 or rank 4 of shape [batch, height, width, depth]. If rank 3, batch of 1 is assumed.

    • filter: TensorLike | Tensor3D

      The filter tensor, rank 3, of shape [filterHeight, filterWidth, depth].

    • strides: number | [number, number]

      The strides of the sliding window for each dimension of the input tensor: [strideHeight, strideWidth]. If strides is a single number, then strideHeight == strideWidth.

    • pad: "same" | "valid"

      The type of padding algorithm.

    • Optional dilations: number | [number, number]

      The dilation rates: [dilationHeight, dilationWidth] in which we sample input values across the height and width dimensions for atrous morphological dilation. Defaults to [1, 1]. If dilations is a single number, then dilationHeight == dilationWidth. If it is greater than 1, then all values of strides must be 1.

    • Optional dataFormat: "NHWC"

      Specify the data format of the input and output data. Defaults to 'NHWC'. Only 'NHWC' is currently supported. With the default format "NHWC", the data is stored in the order of: [batch, height, width, channels].

    Returns T

    Doc

Generated using TypeDoc