titu1994 / tf_neural_deconvolution

Neural Deconvolutions in Tensorflow
MIT License
12 stars 1 forks source link

Suggest tf2 equivalent version of these modules #3

Closed ucalyptus2 closed 4 years ago

ucalyptus2 commented 4 years ago

from tensorflow.python.keras.layers.convolutional import Conv from tensorflow.python.keras.utils import conv_utils

Can Replacing Conv with tf.keras.layers.Layer work?

ucalyptus2 commented 4 years ago

@titu1994

titu1994 commented 4 years ago

No, it won't. Deconvolution is an operation performed just prior to convolution op, so it needs to inherits from Conv.

ucalyptus2 commented 4 years ago

Thank you for the clarification.