Here we will create collection for losses of Neural Network's computational graph.
First create a computational graph like so:
with tf.variable_scope("Layer"):
W = tf.get_variable("weights", [m, k],
initializer=tf.zeros_initializer([m, k], dtype=tf.float32))
...