#import tensorflow as tf
#with tf.Session() as sess:
#	with tf.device("/gpu:0") as dev: #"/cpu:0" or "/gpu:0"
import tensorflow as tf
with tf.device('/gpu:0'):
    a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
    b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
