title: AttributeError: module 'tensorflow' has no attribute 'log'
body: <p>I cloned  <a href="https://github.com/matterport/Mask_RCNN.git" rel="nofollow noreferrer">https://github.com/matterport/Mask_RCNN.git</a> and tried to run demo.ipynb</p>
  
  <p>With these two lines, </p>
  
  <pre><code># Create model object in inference mode.
  model = modellib.MaskRCNN(mode="inference", model_dir=MODEL_DIR, config=config)
  
  # Load weights trained on MS-COCO
  model.load_weights(COCO_MODEL_PATH, by_name=True)
  </code></pre>
  
  <p>I got the following error</p>
  
  <pre><code>~\Desktop\Neuer Ordner\Mask RCNN\Mask_RCNN-master\mrcnn\model.py in log2_graph(x)
  339 def log2_graph(x):
  340     """Implementation of Log2. TF doesn't have a native implementation."""
  --&gt; 341     return tf.log(x) / tf.log(2.0)
  342 
  343 
  
  AttributeError: module 'tensorflow' has no attribute 'log'
  </code></pre>
  
  <p>I followed the solutions as per  <a href="https://github.com/matterport/Mask_RCNN/issues/1797" rel="nofollow noreferrer">https://github.com/matterport/Mask_RCNN/issues/1797</a>
  like down versioning tensorflow to 1.13.1 and using tf.math.log(). But nothing helped.</p>
  
  <p>I also tried running some log functions. But It returned results! I don't know where the problem is. </p>
  
  <pre><code>&gt;&gt;&gt; z=tf.log(x)
  &gt;&gt;&gt; with tf.Session() as sess:  print(z.eval())
  ...
  [      -inf -0.6931472  0.         1.609438 ]
  </code></pre>