Tensorflow 定义变量,函数,数值计算等名字的更新方式
作者:鲁班班班七号 时间:2021-08-10 22:48:09
左为旧版,右为更新到1.0版本后的名字
定义变量的更新
tf.VARIABLES ——> tf.GLOBAL_VARIABLES
tf.all_variables ——> tf.global_variables
tf.initialize_all_variables ——> tf.global_variables_initializer
tf.initialize_local_variables ——> tf.local_variables_initializer
tf.initialize_variables ——> tf.variables_initializer
函数的更新
tf.audio_summary ——> tf.summary.audio
tf.contrib.deprecated.histogram_summary ——>tf.summary.histogram
tf.contrib.deprecated.scalar_summary ——>tf.summary.scalar
tf.histogram_summary ——> tf.summary.histogram
tf.image_summary ——>tf.summary.image
tf.merge_all_summaries ——> tf.summary.merge_all
tf.merge_summary ——> tf.summary.merge
tf.scalar_summary ——> tf.summary.scalar
tf.train.SummaryWriter ——> tf.summary.FileWriter
数值计算函数的更新
tf.sub ——> tf.subtract
tf.mul ——> tf.multiply
tf.div ——> tf.divide
tf.mod ——> tf.truncatemod
tf.inv ——> tf.reciprocal
tf.list_diff ——> tf.setdiff1d
tf.listdiff ——> tf.setdiff1d
tf.neg ——> tf.negative
tf.select ——> tf.where
来源:https://blog.csdn.net/liuxiaodong400/article/details/80896001
标签:Tensorflow,变量,函数,数值
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python3.6实现学生信息管理系统
2021-02-09 20:54:48
SqlServer 索引自动优化工具
2012-10-07 10:41:09
Python实现画图软件功能方法详解
2023-08-29 06:35:49
![](https://img.aspxhome.com/file/2023/1/121371_0s.png)
Python编程生成随机用户名及密码的方法示例
2021-12-14 13:12:17
Python库skimage绘制二值图像代码实例
2023-06-12 15:05:33
![](https://img.aspxhome.com/file/2023/2/59122_0s.png)
MySQL最好的优化技巧
2009-10-27 12:05:00
php错误级别的设置方法
2023-11-24 10:30:35
django 通过url实现简单的权限控制的例子
2022-02-05 07:07:50
asp如何对数组显示和排序?
2009-11-20 18:30:00
oracle 彻底删除方法
2009-07-02 12:22:00
通用分页存储过程
2007-11-28 13:08:00
python 随机生成10位数密码的实现代码
2021-08-01 23:49:02
用Dreamweaver MX轻松操作表格
2009-05-29 18:41:00
![](https://img.aspxhome.com/file/UploadPic/20072/20072311325453s.jpg)
使用Abot中文分词组件来开发ASP站内搜索引擎
2007-10-18 13:36:00
python opencv通过4坐标剪裁图片
2022-06-03 20:14:03
![](https://img.aspxhome.com/file/2023/1/100271_0s.png)
异步任务队列Celery在Django中的使用方法
2023-08-03 06:26:39
![](https://img.aspxhome.com/file/2023/3/110033_0s.png)
python处理RSTP视频流过程解析
2023-11-22 00:54:55
PyTorch实现图像识别实战指南
2022-01-08 14:27:24
![](https://img.aspxhome.com/file/2023/2/72142_0s.jpg)
浅谈pandas筛选出表中满足另一个表所有条件的数据方法
2022-08-12 14:29:13
![](https://img.aspxhome.com/file/2023/4/78764_0s.jpg)
python爬虫之遍历单个域名
2021-06-28 07:45:34