---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-90d7e657800c> in <module>()
1 my_int_variable = tf.get_variable("my_int_variable", [1, 2, 3], dtype=tf.int32,
----> 2 initializer=tf.zeros_initializer)
3 print(type(my_int_variable))
~/anaconda2/envs/tensor/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py in get_variable(name, shape, dtype, initializer, regularizer, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
1260 partitioner=partitioner, validate_shape=validate_shape,
1261 use_resource=use_resource, custom_getter=custom_getter,
-> 1262 constraint=constraint)
1263 get_variable_or_local_docstring = (
1264 """%s
~/anaconda2/envs/tensor/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py in get_variable(self, var_store, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
1095 partitioner=partitioner, validate_shape=validate_shape,
1096 use_resource=use_resource, custom_getter=custom_getter,
-> 1097 constraint=constraint)
1098
1099 def _get_partitioned_variable(self,
~/anaconda2/envs/tensor/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py in get_variable(self, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)
433 caching_device=caching_device, partitioner=partitioner,
434 validate_shape=validate_shape, use_resource=use_resource,
--> 435 constraint=constraint)
436
437 def _get_partitioned_variable(
~/anaconda2/envs/tensor/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py in _true_getter(name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, constraint)
402 trainable=trainable, collections=collections,
403 caching_device=caching_device, validate_shape=validate_shape,
--> 404 use_resource=use_resource, constraint=constraint)
405
406 if custom_getter is not None:
~/anaconda2/envs/tensor/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py in _get_single_variable(self, name, shape, dtype, initializer, regularizer, partition_info, reuse, trainable, collections, caching_device, validate_shape, use_resource, constraint)
741 "reuse=tf.AUTO_REUSE in VarScope? "
742 "Originally defined at:\n\n%s" % (
--> 743 name, "".join(traceback.format_list(tb))))
744 found_var = self._vars[name]
745 if not shape.is_compatible_with(found_var.get_shape()):
ValueError: Variable my_int_variable already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
File "<ipython-input-5-5cbd14b8ee95>", line 2, in <module>
initializer=tf.zeros_initializer)
File "/home/dhankar/anaconda2/envs/tensor/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2910, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/home/dhankar/anaconda2/envs/tensor/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2850, in run_ast_nodes
if self.run_code(code, result):