Page cover image

1.6 Additional Information

本小节主要介绍一些其它的操作

M3 安装tensorflow 以及pytorch

pip install tensorflow-macos pip install tensorflow-metal

import tensorflow as tf

print("TensorFlow 版本:", tf.version) print("GPU 是否可用:", tf.config.list_physical_devices('GPU'))

pip install torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

Last updated