import tensorflow as tf tf.disable_v2_behavior() zero=tf.Variable(0) print(zero)
Standard input is empty
<tf.Variable 'Variable:0' shape=() dtype=int32_ref>
WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/compat/compat.py:175: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version. Instructions for updating: Colocations handled automatically by placer.