Search code examples
machine-learningneural-networkkerasconvolutionkeras-layer

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?


Solution

  • 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