提交 985521ee 编写于 作者: N Naruu 提交者: François Chollet

Update local.py docstrings (#13373)

* Update local.py

stride value implies the input argument of 'stride', and dilation_rate implies the input argument of 'dilation rate' of Conv1D function.
It is more explicit to express as code rather than using words stride value, dilation value.
Or, at least both stride and dilation_rate should be written in code, not only dilation rate as before document

* Update local.py

mark as code snippet
上级 5be4ed3d
......@@ -43,8 +43,8 @@ class LocallyConnected1D(Layer):
specifying the length of the 1D convolution window.
strides: An integer or tuple/list of a single integer,
specifying the stride length of the convolution.
Specifying any stride value != 1 is incompatible with specifying
any `dilation_rate` value != 1.
Specifying any `strides!=1` is incompatible with specifying
any `dilation_rate!=1`.
padding: Currently only supports `"valid"` (case-insensitive).
`"same"` may be supported in the future.
data_format: String, one of `channels_first`, `channels_last`.
......@@ -250,9 +250,9 @@ class LocallyConnected2D(Layer):
# Input shape
4D tensor with shape:
`(samples, channels, rows, cols)` if data_format='channels_first'
`(samples, channels, rows, cols)` if `data_format='channels_first'`
or 4D tensor with shape:
`(samples, rows, cols, channels)` if data_format='channels_last'.
`(samples, rows, cols, channels)` if `data_format='channels_last'`.
# Output shape
4D tensor with shape:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册