title: Upgrading tf.contrib.slim manually to tf 2.0
body: <p>I have a problem with my python code that uses <code>tf.contrib.slim</code> functionalities and no longer works after upgrading to tensorflow to 2.0. </p>
  
  <p>How can I upgrade the following to tf 2.0:</p>
  
  <pre><code>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') 
  </code></pre>
  
  <p>Thanks.</p>