Add an explanation about padding in Conv1d (#6796)

* Add an explanation about padding in Conv1d

* Fix docstring content
This commit is contained in:
Rik Nijessen 2017-06-05 23:49:12 +02:00 committed by François Chollet
parent 5810f7a9c7
commit 78be823518

@ -256,6 +256,9 @@ class Conv1D(_Conv):
Specifying any stride value != 1 is incompatible with specifying
any `dilation_rate` value != 1.
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]
does not depend on input[t+1:]. Useful when modeling temporal data
where the model should not violate the temporal order.