The values โโof all variables in the current session can be printed using:
with tf.Session() as sess:
variables_names =[v.name for v in tf.trainable_variables()]
values = sess.run(variables_names)
for k,v in zip(variables_names, values):
print(k, v)
source
share