https://blog.csdn.net/mzpmzk/article/details/78636137 关于张量tensor的介绍 import tensorflow as tf import numpy as np x = tf.convert_to_tensor([[0,1,2],[3,4,5],[6,7,8]]) y = tf.constant([1,2,3,4,5,6], shape = [2,3]) z = tf.constant(-1, shape=[3,3]) a1 = tf.…