如何将此函数转换为等效的tf.keras(Tensorflow 2.0)实现?
def deconv2d(inputs,out_channels,name = None):batch,in_height,in_width,in_channels = [int(d)for d in …
TensoFlow 2.0有 tf.keras.layers.Conv2DTranspose 。 Keras是TF 2.0的默认高级API,但它仍然有 tf.nn.conv2d_transpose 适用于低级应用程序
tf.keras.layers.Conv2DTranspose
tf.nn.conv2d_transpose
https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/layers/Conv2DTranspose