TinyML
来自Jack's Lab
(版本间的差异)
(→Quick Start) |
(→Quick Start) |
||
| 第10行: | 第10行: | ||
<source lang=bash> | <source lang=bash> | ||
$ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==2.3.0 | $ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==2.3.0 | ||
| + | |||
| + | $ python3 | ||
| + | import tensorflow as tf | ||
| + | hello = tf.constant('Hello, TensorFlow!') | ||
| + | sess = tf.Session() | ||
| + | print(sess.run(hello)) | ||
| + | |||
| + | Hello, TensorFlow! | ||
</source> | </source> | ||
<br><br> | <br><br> | ||
2022年3月31日 (四) 18:39的版本
1 Overview
2 Quick Start
$ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==2.3.0
$ python3
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Hello, TensorFlow!