Tensorflow 1.13报错.
conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.conv2d instead.
有点问题,应该是Conv2D,入参的用法修改如下
# Old functional API
output = tf.conv2d(inputs, *other_args)
# New API
output = tf.keras.layers.Conv2D(*other_args)(inputs)
padding的赋值,由SAME改为‘same’