導入tf.keras
import tensorflow as tf
import tensorflow.keras as keras
if __name__ == '__main__':
print(tf.__version__) // check tensorflow version
print(keras.__version__)// check tensorflow keras version
print(tf.__path__) // check tensorflow install path
// check whether tf is gpu or not
a = tf.constant([1,2,3,4,5,6], shape=[2,3],name='a')
sess = tf.Session()
print(sess.run(a))