Add an explanation about padding in Conv1d (#6796)
* Add an explanation about padding in Conv1d * Fix docstring content
This commit is contained in:
parent
5810f7a9c7
commit
78be823518
@ -256,6 +256,9 @@ class Conv1D(_Conv):
|
|||||||
Specifying any stride value != 1 is incompatible with specifying
|
Specifying any stride value != 1 is incompatible with specifying
|
||||||
any `dilation_rate` value != 1.
|
any `dilation_rate` value != 1.
|
||||||
padding: One of `"valid"`, `"causal"` or `"same"` (case-insensitive).
|
padding: One of `"valid"`, `"causal"` or `"same"` (case-insensitive).
|
||||||
|
`"valid"` means "no padding".
|
||||||
|
`"same"` results in padding the input such that
|
||||||
|
the output has the same length as the original input.
|
||||||
`"causal"` results in causal (dilated) convolutions, e.g. output[t]
|
`"causal"` results in causal (dilated) convolutions, e.g. output[t]
|
||||||
does not depend on input[t+1:]. Useful when modeling temporal data
|
does not depend on input[t+1:]. Useful when modeling temporal data
|
||||||
where the model should not violate the temporal order.
|
where the model should not violate the temporal order.
|
||||||
|
Loading…
Reference in New Issue
Block a user