Skip to content

Commit 3d32481

Browse files
Modified example in DepthwiseConv2D file (#20292)
* Modified example in depthwise_conv2d file modified example code * Update depthwise_conv2d.py --------- Co-authored-by: François Chollet <francois.chollet@gmail.com>
1 parent 813fbc5 commit 3d32481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keras/src/layers/convolutional/depthwise_conv2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ class DepthwiseConv2D(BaseDepthwiseConv):
9393
Example:
9494
9595
>>> x = np.random.rand(4, 10, 10, 12)
96-
>>> y = keras.layers.DepthwiseConv2D(3, 3, activation='relu')(x)
96+
>>> y = keras.layers.DepthwiseConv2D(kernel_size=3, activation='relu')(x)
9797
>>> print(y.shape)
98-
(4, 8, 8, 36)
98+
(4, 8, 8, 12)
9999
"""
100100

101101
def __init__(

0 commit comments

Comments
 (0)