查看tensor数值

来源:互联网 发布:全国68所网络教育学校 编辑:程序博客网 时间:2024/06/05 17:39

两种方式:
print(sess.run(a))
print(a.eval())

ps:两种方法均需在sess内