Shashi Tunga
Shashi Tunga

Reputation: 516

Difference between Conv2D and Convolution2D in Keras

There is already an answer wrt to Tensorflow. But the problem is that In my IDE Conv2D is a class while Convolution2D is a variable?

Upvotes: 24

Views: 12238

Answers (1)

Daniel Möller
Daniel Möller

Reputation: 86610

From the keras source code, they're the same:
(The source code changes from time to time and the line number in the link above might eventually be wrong)

# Aliases

Convolution1D = Conv1D
Convolution2D = Conv2D
Convolution3D = Conv3D
SeparableConvolution2D = SeparableConv2D
Convolution2DTranspose = Conv2DTranspose
Deconvolution2D = Deconv2D = Conv2DTranspose
Deconvolution3D = Deconv3D = Conv3DTranspose

Upvotes: 32

Related Questions