import tensorflow as tf

w1 = tf.Variable(tf.random_normal((2, 3), stddev=1, seed=1))
w2 = tf.Variable(tf.random_normal((3, 1), stddev=1, seed=1)) x = tf.constant([[0.7, 0.9]]) a = tf.matmul(x, w1)
y = tf.matmul(a, w2) init_op = tf.global_variables_initializer() with tf.Session() as sess:
sess.run(init_op)
print(sess.run(y))

最新文章

  1. xmpp openfire smack 介绍和openfire安装及使用
  2. 多Web服务器之间共享Session的解决方案
  3. [No000058]一口气读完一本英语书
  4. c#excel的操作例子
  5. 通俗理解T检验与F检验的区别【转】
  6. C++使用之常量的定义
  7. Android L动画入门
  8. PHP中实现在数据库中的增、删、查、改
  9. pandas.DataFrame.describe 官方文档翻译percentile_width,percentiles,include, exclude
  10. session的几种模式
  11. linux centos 用户权限相关总结
  12. laravel whereDoesntHave
  13. Linux中使用Apache发布html网页
  14. python中执行shell命令的几个方法小结
  15. Python3版本中的filter函数,map函数和reduce函数
  16. 《算法》BEYOND 部分程序 part 2
  17. sso接口的调用
  18. Java中JDK,JRE和JVM之间的关系
  19. GitHub无法push的问题
  20. 【php】instanceof

热门文章

  1. (原创)如何对APP服务端进行压力测试
  2. UITableview 兼容IOS6 和IOS7的方法
  3. 通过python xlsxwriter模块生成EXCEL柱状图、饼图
  4. CSS超链接常见四种状态在控制
  5. Codeforces Round #467 Div.2题解
  6. Vova and Trophies CodeForces - 1082B(思维题)
  7. net Core 中定时任务的设置
  8. RSAROLL
  9. RestEasy 用户指南----第7章 @HeaderParam
  10. [UOJ#35] [UOJ后缀数组模板题] 后缀排序 [后缀数组模板]