• Computes the transposed 2D convolution of an image, also known as a deconvolution.

    Type Parameters

    Parameters

    • x: TensorLike | T

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

    • filter: TensorLike | Tensor4D

      The filter, rank 4, of shape [filterHeight, filterWidth, outDepth, inDepth]. inDepth must match inDepth in x.

    • outputShape: [number, number, number] | [number, number, number, number]

      Output shape, of rank 4 or rank 3: [batch, height, width, outDepth]. If rank 3, batch of 1 is assumed.

    • strides: number | [number, number]

      The strides of the original convolution: [strideHeight, strideWidth].

    • pad: number | "same" | "valid" | ExplicitPadding

      The type of padding algorithm used in the non-transpose version of the op.

    • Optional dimRoundingMode: "floor" | "round" | "ceil"

      A string from: 'ceil', 'round', 'floor'. If none is provided, it will default to truncate.

    Returns T

    Doc

Generated using TypeDoc