码迷,mamicode.com
首页 > 其他好文 > 详细

tensorflow-hello,world

时间:2018-12-12 19:04:30      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:author   close   session   tensor   created   pytho   ons   ted   run   

#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 12 18:18:06 2018 @author: myhaspl """ import tensorflow as tf hello=tf.constant("hello,world") sess=tf.Session() print(sess.run(hello)) sess.close()

b‘hello,world‘

tensorflow-hello,world

标签:author   close   session   tensor   created   pytho   ons   ted   run   

原文地址:http://blog.51cto.com/13959448/2329632

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!