1. 生成tensor tf.zeros(shape, dtype=tf.float32, name=None) tf.zeros_like(tensor, dtype=None, name=None) tf.constant(value, dtype=None, shape=None, name='Const') tf.fill(dims, value, name=None) tf.ones_like(tensor, dtype=None, name=None) tf.ones(shape,…