• Computes a 1D convolution over the input x.

    Type Parameters

    Parameters

    • x: TensorLike | T

      The input tensor, of rank 3 or rank 2, of shape [batch, width, inChannels]. If rank 2, batch of 1 is assumed.

    • filter: TensorLike | Tensor3D

      The filter, rank 3, of shape [filterWidth, inDepth, outDepth].

    • stride: number

      The number of entries by which the filter is moved right at each step.

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

      The type of padding algorithm.

    • Optional dataFormat: "NWC" | "NCW"

      An optional string from "NWC", "NCW". Defaults to "NWC", the data is stored in the order of [batch, in_width, in_channels]. Only "NWC" is currently supported.

    • Optional dilation: number

      The dilation rate in which we sample input values in atrous convolution. Defaults to 1. If it is greater than 1, then stride must be 1.

    • 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