fork download
  1. import tensorflow as tf
  2.  
  3. tf.disable_v2_behavior()
  4.  
  5. zero=tf.Variable(0)
  6. print(zero)
Success #stdin #stdout #stderr 1.05s 194788KB
stdin
Standard input is empty
stdout
<tf.Variable 'Variable:0' shape=() dtype=int32_ref>
stderr
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.