import tensorflow as tf
a=tf.constant(5)
b=tf.constant(3)
res1=tf.divide(a,b)
res2=tf.div(a,b)
with tf.Session() as sess:print sess.run(res1)print sess.run(res2)

输出:

1.66666666667
1

TenSorFlow随笔-除法相关推荐

  1. tensorflow随笔-队列管理器QueueRunner-生产者与消费者

    # -*- coding: utf-8 -*- """ Spyder EditorThis is a temporary script file. "" ...

  2. tensorflow随笔-随机数

    Aliases: tf.compat.v1.random.normal tf.compat.v1.random_normal tf.compat.v2.random.normal tf.random_ ...

  3. tensorflow随笔-读取图像文件数据(2)-TFRecord

    写文件 代码如下 # -*- coding: utf-8 -*- """ Created on Tue May 7 18:29:30 2019@author: liuxi ...

  4. tensorflow随笔-读取图像文件数据(1)

    # -*- coding: utf-8 -*- """ Created on Tue May 7 18:29:30 2019@author: liuxing @email ...

  5. tensorflow随笔-constant

    # -*- coding: utf-8 -*-import tensorflow as tf import numpy as np a=tf.constant(np.array([[6,2]],dty ...

  6. tensorflow随笔-条件循环控制(4)

    例如非严格语义的示例:在下面的示例中,计数器i的最终值不依赖于x.while_loop可并行地增加计数器,并更新x. #!/usr/bin/env python2 # -*- coding: utf- ...

  7. tensorflow随笔-条件循环控制(2)

    tf.count_up_to tf.count_up_to( ref, limit, name=None ) 增加"ref"直到它达到"limit" 参数: r ...

  8. tensorflow随笔-队列(1)

    tf.FIFOQueue Class FIFOQueue 先进先出的队列 属性 dtypes 队列元素的每个组件的dtypes列表 name 队列名字 基础队列的名称. names 队列元素的每个组件 ...

  9. TensorFlow随笔-多分类单层神经网络softmax

    #!/usr/bin/env python2 # -*- coding: utf-8 -*-import tensorflow as tf from tensorflow.examples.tutor ...

最新文章

  1. ASP.NET MVC 中将FormCollection与实体间转换方法
  2. BCH协议升级倒计时——超过68%的BCH全节点已支持升级
  3. category、protocol、delegate总结
  4. [转]在VS中为C/C++源代码文件生成对应的汇编代码文件(.asm)
  5. 鲁棒性、稳定性、非脆弱性
  6. 华为云服务器芯片,云服务器芯片
  7. mysql8 2058_SQLyog连接MySQL8.0及以上版本出现2058错误解决方案
  8. java 数据库连接不上_JAVA基础(六) 处理连接不上MYSQL数据库的方法
  9. golang 内存分析/动态追踪
  10. C语言 头哥习题答案截图
  11. LCD显示--TM1640芯片驱动程序
  12. 关于全国大学生集成电路创新创业大赛
  13. 计算机会计信息系统中凭证日期应该是,《电算化会计》期中考试试题.doc
  14. 在Windows Server 2008上用Windows Media Service打造流媒体直播系统
  15. 【Redis】Redis缓存穿透和雪崩
  16. p2p与反p2p的激战--资料搜集
  17. SD SDHC SDXC
  18. ios textfield 拼音输入 完成才录入
  19. 工业自动化数据采集方案
  20. 源码安装mysql,详细

热门文章

  1. 【jQuery】复选框的全选、反选,推断哪些复选框被选中
  2. java serializable深入了解
  3. 反射和动态代理实现上下文切入AOP效果
  4. 移动水政执法通系统 安卓Android客户端
  5. 数据库设计的第三范式
  6. java学习--基础知识第六天--笔记
  7. CF 2B.The least round way
  8. android 内存播放视频播放器,视频流媒体播放器EasyPlayer-RTSP安卓版在RK3399上运行APP崩溃问题...
  9. lua读取linux文件内容,使用lua模拟tail -n命令读取最后n行
  10. 米兔积木机器人能飞吗_米兔积木机器人APP使用教程