This commit is contained in:
2025-01-04 00:28:28 +08:00
parent 0d00e1deb4
commit f75690be28
6 changed files with 359 additions and 23 deletions
+15
View File
@@ -30,3 +30,18 @@ pip install jupyter
```shell ```shell
jupyter notebook jupyter notebook
``` ```
## tensorflow
### python
```shell
# win and linux
pip install tensorflow
```
```shell
#mac apple silicon
pip install tensorflow-macos
pip install tensorflow-metal
```
### c++
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -3,3 +3,5 @@ pandas
pillow pillow
matplotlib matplotlib
ipywidgets ipywidgets
tensorflow
jupyter
View File
+9
View File
@@ -0,0 +1,9 @@
import tensorflow as tf
# 创建一个TensorFlow常量
hello = tf.constant('Hello, TensorFlow!')
# 将TensorFlow张量转换为NumPy数组
numpy_array = hello.numpy()
print(numpy_array) # 输出: b'Hello, TensorFlow!'