国产精品chinese,色综合天天综合精品网国产在线,成午夜免费视频在线观看,清纯女学生被强行糟蹋小说

    <td id="ojr13"><tr id="ojr13"><label id="ojr13"></label></tr></td>
        • <source id="ojr13"></source>
            <td id="ojr13"><ins id="ojr13"><label id="ojr13"></label></ins></td>

            Article / 文章中心

            深度學習:Mac下Tensorflow安裝及報錯解決

            發(fā)布時間:2021-11-24 點擊數(shù):837

            深度學習tensorflow

            使用:

            • 圖像識別
            • 自然語言處理
            • 情感分析
            人工智能  - 機器學習  - 深度學習  機器學習:  -神經(jīng)網(wǎng)絡(簡單)  -回歸  深度學習:  -神經(jīng)網(wǎng)絡(深度)  -圖像:卷積神經(jīng)網(wǎng)絡  -自然語言處理:循環(huán)神經(jīng)網(wǎng)絡

            CPU/GPU/TPU

            安裝:

            CPU版本

            pip install tensorflow

            GPU版本

            pip install tensorflow-gpu

            運行報錯:

            ImportError: dlopen(/.virtualenvs/py3/lib/python3.6/ site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: _clock_gettime

            解決:

            查看版本

            python3.6

            tensorflow-1.12.0

            mac OS 10.11.6

            macOS<10.12的需要卸載后安裝1.5版本

            pip install tensorflow==1.5

            參考

            https://github.com/tensorflow/tensorflow/issues/24642

            運行警告

            1.采用源碼安裝

            2.設置日志級別

            # 取消警告 import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" 

            tensorflow實現(xiàn)加法運算

             import tensorflow as tf  # 取消警告 import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"  a = tf.constant(5.0) b = tf.constant(6.0)  value = tf.add(a, b)  with tf.Session() as session:  print(session.run(value)) # 11.0