Skip to content
masterclass Buddy

TensorFlow · Class

layers.DepthwiseConv2D

A Keras layer for 2D depthwise convolution. It applies separate kernels to input channels and can create multiple output channels per input channel.

Last updated

Syntax

tf.keras.layers.DepthwiseConv2D(kernel_size, strides=(1, 1), padding='valid', depth_multiplier=1, data_format=None, dilation_rate=(1, 1), activation=None, use_bias=True, depthwise_initializer='glorot_uniform', bias_initializer='zeros', depthwise_regularizer=None, bias_regularizer=None, activity_regularizer=None, depthwise_constraint=None, bias_constraint=None, **kwargs)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • tf.keras.layers.Layer
  • tf.nn.depthwise_conv2d
  • tfm.vision.layers.DepthwiseConv2D

Source: tf.keras.layers.DepthwiseConv2D | TensorFlow v2.21.0. Checked 2026-11-03.