/
githubmirror
/
TensorFlow-Examples
Обзор
Документация
Войти
/
githubmirror
/
TensorFlow-Examples
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tensorflow_v1/examples/1_Introduction/helloworld.py
25 строк
522 B
Aymeric Damien
update docs (#367)
16 май 2020, 23:14
Не верифицирован
16 май 2020, 23:14
3a767b1
Код
Авторство
О чём код?
''' HelloWorld example using TensorFlow library. Author: Aymeric Damien Project: https://github.com/aymericdamien/TensorFlow-Examples/ ''' from __future__ import print_function import tensorflow as tf # Simple hello world using TensorFlow # Create a Constant op # The op is added as a node to the default graph. # # The value returned by the constructor represents the output # of the Constant op. hello = tf.constant('Hello, TensorFlow!') # Start tf session sess = tf.Session() # Run the op print(sess.run(hello))