I am getting the below error while executing my program ...
def conv2d(x, output_dim, k_size=5, stride=2, stddev=0.02, name="conv2d"):
#conv = tf.keras.layers.Conv2D(x, output_dim, kernel_size=k_size,
strides=[stride, stride], padding="SAME",
kernel_initializer=init(stddev=0.02), name=name)
conv = tf.compat.v1.layers.Conv2D(x, output_dim, kernel_size=k_size,
strides=[stride, stride], padding='SAME',
kernel_initializer=init(stddev=0.02), name=name)
Error
File "/nfs/s-iibi54/users/skuanar/Downloads/VAE-GAN-Autoencoding-Beyond-Pixels-Using-a-Similarity-Metric-master/vaegan.py", line 20, in conv2d conv = tf.compat.v1.layers.Conv2D(x, output_dim, kernel_size=k_size, strides=[stride, stride], padding='SAME', kernel_initializer=init(stddev=0.02), name=name) TypeError: init() got multiple values for argument 'kernel_size'