Предупреждение TensorFlow отображается при каждом его импортеLinux

Ответить
Anonymous
 Предупреждение TensorFlow отображается при каждом его импорте

Сообщение Anonymous »

, cudnn и cublas предупреждения, отображаемые после импорта tensorflow
  • ОС: Ubuntu 24.10 x86_64
    Хост: G5 5590 < /li>
    Ядра: 6.11.0-13-Generic < /li>
    CPU: Intel I7-9750HH (12) @ 4,500 ГГц < /li>
    GPU: nvidia geforce gtx 1650 Mobile /max-q < /li>
    GPU: Intel Coffeelake-H gt2 [UHD Graphics 630 ] < /li>
    Python: 3.12.8 < /li>
    tensorflow: 2.18.0 < /li>
    < /ul>
    < P> Методы воспроизведения: < /p>

    Свежая установка Ubuntu 24.10 x86_64 < /li>
    Установить Anaconda3-2024.10-1-linux- x86_64.sh (последняя версия Anaconda) < /li>
    Открытый терминал в каталоге загрузки < /li>
    Запустить следующую команду Bash в терминале: < /li>
    < /ul>

    Код: Выделить всё

    bash ~/Anaconda3-2024.10-1-Linux-x86_64.sh
    
    откройте новый терминал
  • запустите базу активации conda
    < li>запустить conda create --name tf python=3.12.8
  • запустить conda active tf
  • запустить pip установите 'tensorflow[and-cuda]'
  • запустите следующий код Python в терминале:

Код: Выделить всё

python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
вывод:

Код: Выделить всё

2025-01-23 21:08:06.468437: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1737659286.484845  763412 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1737659286.489647  763412 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-01-23 21:08:06.505984: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.

[PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]
Также я знаю, что за это предупреждение (

Код: Выделить всё

cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
) Мне нужно перестроить тензорный поток из двоичных файлов, поддерживающих инструкции AVX2 и FMA, а как насчет остальных?


Подробнее здесь: https://stackoverflow.com/questions/793 ... porting-it
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»