1. 程式人生 > >tensorflow-hello,world

tensorflow-hello,world

#!/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'