The input tensor, of rank 3 or rank 2, of shape
[batch, width, inChannels]
. If rank 2, batch of 1 is assumed.
The filter, rank 3, of shape
[filterWidth, inDepth, outDepth]
.
The number of entries by which the filter is moved right at each step.
The type of padding algorithm.
same
and stride 1: output will be of same size as input,
regardless of filter size.valid
: output will be smaller than input if filter is larger
than 1x1.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: numberThe 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.
Generated using TypeDoc
Computes a 1D convolution over the input x.