#创建标量、向量、矩阵 a = 1.2 # python 语言方式创建标量 aa = tf.constant(1.2) # tf方式创建标量 b = tf.constant([1.2]) # 创建一个元素的向量 c = tf.constant(