title: AttributeError: module 'tensorflow' has no attribute 'get_variable'
body: <p><strong>I am trying to run this line of code :</strong></p>
  
  <pre><code>var_init_1 = tf.get_variable("var_init_1", [1, 2], dtype=tf.int32,  initializer=tf.zeros_initializer)
  print(var_init_1.shape)
  </code></pre>
  
  <p>It should give an output the shape of tensor of zeros.</p>
  
  <h2><strong>But why I'm getting an error like this:</strong></h2>
  
  <pre><code>AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-37-3cc73aa1818e&gt; in &lt;module&gt;
  ----&gt; 1 var_init_1 = tf.get_variable("var_init_1", [1, 2], dtype=tf.int32,  initializer=tf.zeros_initializer)
        2 print(var_init_1.shape)
  
  AttributeError: module 'tensorflow' has no attribute 'get_variable'
  </code></pre>