[TensorFlow学习手记] 2
来源:互联网 发布:windows 关闭系统还原 编辑:程序博客网 时间:2024/06/04 23:40
## sess Session 会话控制的简单运用## sess 每run一次,便执行一次结构## sess.close() import tensorflow as tfmatrix1 = tf.constant([[3,3]]) # 1*3 矩阵matrix2 = tf.constant([[2], [2]]) # 2*1 矩阵product = tf.matmul(matrix1,matrix2) # matrix multiply np.dot(m1,m2)### method 1 sess = tf.Session()result = sess.run(product)print(result)sess.close()### method 2with tf.Session() as sess: result2 = sess.run(product) print(result2)# 已经自动close
阅读全文
0 0
- [TensorFlow学习手记] 2
- [TensorFlow学习手记] 3
- [TensorFlow]学习手记 4
- [TensorFlow学习手记] 5
- [TensorFlow学习手记] 6
- [TensorFlow学习手记] 1-简单例子
- Samba学习手记(2)
- prototype 学习手记(2)
- FotoVision学习手记(2)
- CORBA学习手记2
- JavaScript学习手记2
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- X86汇编语言学习手记(2)
- Oracle中trunc函数、round 函数、ceil函数和floor函数的使用
- 那些天纠结的BUG
- Oracle的REDO和UNDO
- React Navigation 入门(二)
- 当物联网成为主导后,产品经理将何去何从
- [TensorFlow学习手记] 2
- c++中几个需要注意的点
- NYOJ 硬币找零
- js网站国际化,多国语言切换【详解】
- Maximum Length of Repeated Subarray
- 理解和配置 Linux 下的 OOM Killer
- sourceTree 添加 ssh key 方法
- 字节码字典
- 开源巨献:Google最热门60款开源项目