import tensorflow as tf
# import os
# os.environ['TF_CPP_MIN_LOG_LEVEL']='2' a = tf.placeholder(tf.int16)
b = tf.placeholder(tf.int16)
add = tf.add(a, b)
mul = tf.multiply(a, b) config = tf.ConfigProto()
config.gpu_options.allow_growth = True with tf.Session(config=config) as sess:
print(sess.run(add, feed_dict={a: 3, b: 4}))
print(sess.run(mul, feed_dict={a: 3, b: 4}))
print(sess.run([add, mul], feed_dict={a: 3, b: 4}))

最新文章

  1. iOS app内存分析套路
  2. cvSave in VS2010 or Linux
  3. Python深入05 装饰器
  4. arm-none-eabi-gcc install
  5. Krita编译和旧版本下载
  6. Maven--构建企业级仓库(二)
  7. ajax对服务器路径请求
  8. hibernate jar包介绍
  9. 多模字符串匹配算法之AC自动机—原理与实现
  10. python中html解析-Beautiful Soup
  11. (转)Spark性能优化:资源调优篇
  12. bzoj 3999: [TJOI2015]旅游
  13. A.01.12—模块的输出—通讯(CAN&LIN)
  14. c# Cache 使用实例
  15. Servlet快速入门
  16. webpack初识
  17. Eclipse中JSP生成的class文件去了哪里?
  18. TabControl控件在左侧绘制tabPage页面
  19. ng-class ng-style
  20. linux 常用命令总结(二)

热门文章

  1. linux python3 venv 虚拟环境报错 [-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 2.
  2. thinkphp 使用redis 整理(二) mark 一下
  3. VS2012编译WDM驱动
  4. springboot 在配置文件写参数注入到类中
  5. python使用threading获取线程函数返回值的实现方法
  6. SQL Server2012 安装方法详解
  7. 拾遗:Go 单元测试
  8. 前端(十四)—— JavaScript常用类:Number、Date类、字符串、数组、Math类、正则
  9. 44-Ubuntu-用户管理-09-chmod的数字表示法介绍
  10. Spring-boot整合Redis,遇到的问题