tensor与array互转

#tenrsor读取出来
with tf.Session():
  b = a.eval()
  print(b)

b = tf.convert_to_tensor(a)

#将array转为tensor

猜你喜欢

转载自blog.csdn.net/qq_38640439/article/details/81173255
今日推荐