I have a problem with my python code that uses tf.contrib.slim
functionalities and no longer works after upgrading to tensorflow to 2.0.
How can I upgrade the following to tf 2.0:
import tensorflow.contrib.slim as slim
import tensorflow.contrib.slim.nets
# ...
net = slim.conv2d(
inp,
dim,
[3, 3],
rate=1,
normalizer_fn=slim.layer_norm,
activation_fn=lrelu,
scope='g_' + str(width) + '_conv1')
Thanks.