We see this quite often in many of the TensorFlow tutorials:
sess = tf.Session(config=tf.ConfigProto(allow_soft_placem
In simple words:
allow_soft_placement allows dynamic allocation of GPU memory,
allow_soft_placement
log_device_placement prints out device information
log_device_placement