安装 Tensorflow

安装 Python Release Python 3.9.0 | Python.org

安装 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade tensorflow

验证:python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"

2023-10-14 18:57:07.191647: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
tf.Tensor(-1484.3733, shape=(), dtype=float32)

 

posted on 2023-10-14 19:16  Gary Zhang  阅读(174)  评论(0)    收藏  举报

导航