title: How to convert tf.contrib to Tensorflow 2.0
body: <p>So I'm trying to implement object detection using Tensorflow and a part of my code uses tf.contrib. The problem is tf.contrib is not supported in Tensorflow 2.0. </p>
  
  <p>I've tried using the tf_upgrade_v2 script but I get the following message: </p>
  
  <p>ERROR: Using member tf.contrib.slim in deprecated module tf.contrib. tf.contrib.slim cannot be converted automatically. tf.contrib will not be distributed with TensorFlow 2.0, please consider an alternative in non-contrib TensorFlow, a community-maintained repository such as tensorflow/addons, or fork the required code.</p>
  
  <pre class="lang-py prettyprint-override"><code>import functools
  import tensorflow as tf
  from object_detection.core import box_predictor
  from object_detection.utils import shape_utils
  from object_detection.utils import static_shape
  
  slim = tf.contrib.slim
  </code></pre>