title: ImportError: cannot import name 'gen_batch_ops'
body: <p>I want to use Eager Execution, but an error rises when I want to import the eager module. </p>
  
  <p>What's going wrong? Thanks in advance.</p>
  
  <p>Below is the error message.</p>
  
  <pre><code>import tensorflow
  import tensorflow.contrib.eager as tfe
  
  ---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-4-6548a27ca58e&gt; in &lt;module&gt;()
        1 import tensorflow as tf
  ----&gt; 2 import tensorflow.contrib.eager as tfe
        3 tfe.enable_eager_execution()
  
  ~\Anaconda3\lib\site-packages\tensorflow\contrib\__init__.py in &lt;module&gt;()
       20 
       21 # Add projects here, they will show up under tf.contrib.
  ---&gt; 22 from tensorflow.contrib import batching
       23 from tensorflow.contrib import bayesflow
       24 from tensorflow.contrib import cloud
  
  ~\Anaconda3\lib\site-packages\tensorflow\contrib\batching\__init__.py in     &lt;module&gt;()
       21 from __future__ import print_function
       22 
  ---&gt; 23 from tensorflow.contrib.batching.python.ops.batch_ops import batch_function
       24 
       25 from tensorflow.python.util.all_util import remove_undocumented
  
  ~\Anaconda3\lib\site-packages\tensorflow\contrib\batching\python\ops\batch_ops.py in &lt;module&gt;()
       20 
       21 from tensorflow.python.framework import ops
  ---&gt; 22 from tensorflow.python.ops import gen_batch_ops
       23 # go/tf-wildcard-import
       24 # pylint: disable=wildcard-import
  
  ImportError: cannot import name 'gen_batch_ops'
  </code></pre>