import tensorflow as tf

x = tf.constant([[1, 2]])
neg_op = tf.negative(x)

"""
Explanation: Ch 02: Concept 04
Session logging
Define an op on a tensor. Here's an example:
End of explanation
"""


with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess:
    result = sess.run(neg_op)
    print(result)

"""
Explanation: Now let's use a session with a special argument passed in.
End of explanation
"""


