利用tensorflow实现前向传播
2024-08-30 20:11:00
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))
最新文章
- xmpp openfire smack 介绍和openfire安装及使用
- 多Web服务器之间共享Session的解决方案
- [No000058]一口气读完一本英语书
- c#excel的操作例子
- 通俗理解T检验与F检验的区别【转】
- C++使用之常量的定义
- Android L动画入门
- PHP中实现在数据库中的增、删、查、改
- pandas.DataFrame.describe 官方文档翻译percentile_width,percentiles,include, exclude
- session的几种模式
- linux centos 用户权限相关总结
- laravel whereDoesntHave
- Linux中使用Apache发布html网页
- python中执行shell命令的几个方法小结
- Python3版本中的filter函数,map函数和reduce函数
- 《算法》BEYOND 部分程序 part 2
- sso接口的调用
- Java中JDK,JRE和JVM之间的关系
- GitHub无法push的问题
- 【php】instanceof
热门文章
- (原创)如何对APP服务端进行压力测试
- UITableview 兼容IOS6 和IOS7的方法
- 通过python xlsxwriter模块生成EXCEL柱状图、饼图
- CSS超链接常见四种状态在控制
- Codeforces Round #467 Div.2题解
- Vova and Trophies CodeForces - 1082B(思维题)
- net Core 中定时任务的设置
- RSAROLL
- RestEasy 用户指南----第7章 @HeaderParam
- [UOJ#35] [UOJ后缀数组模板题] 后缀排序 [后缀数组模板]