Let's see what the script does:
spike = tf.Variable(False)
This line creates a symbolic variable or node in the compute graph with a constant initializer. Nothing has been allocated for this variable at this time. In addition, it is not yet known on which device (CPU or GPU) it will be placed.
Further
spike.initializer.run()
spike
, .
, , -, , . : . , .
-, const . , Xavier . , .
, tenorflow : - op. , tenorflow , , , , Python.
:
import tensorflow.contrib.eager as tfe
tfe.enable_eager_execution()
... , .