1. tf.constant(list/array) , tf.convert_to_tensor(list/array) 2. tf.ones(shape) tf.zeros(shape) tf.fill(shape,value) 3.tf.ones_like(tensor) tf.zeros_like(tensor) #正态分布 4. tf.random.normal(shape,mean,stddev,dtype) # 均匀分布 5. tf.random.uniform(shape,minval,maxval,dtype) 6. tf.range(start = 0, limit , delta = 1)