› Spec
CPU: Apple M1 or Intel i5
RAM: 8GB
Storage: 256GB SSD
OS: macOS or Windows 11
Python: 3.11.5 and 3.8.7
Python_venv_path: Only /desktop/[folder]
IDE: Visual Studio Code
› Home › About › Archive › Categories › Guestbook

Categories : TensorFlow

TensorFlow 'tf_enable_onednn_opts=0' Error


  1. TensorFlow Error 경험
    1. TensorFlow Error 소개
    2. 0. TensorFlow 에러해결

TensorFlow Error 경험

TensorFlow Error 소개

2025-01-14 17:54:21.357200: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-01-14 17:54:23.565144: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.


‘TF_ENABLE_ONEDNN_OPTS=0’ 오류의 해결방법

0. TensorFlow 에러해결

  • tensorflow 를 import 하기전 os 변수를 지정시켜주기
    import os
    os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
    import tensorflow as tf
    


    이 방법이 케바케 없이 오류 해결완료됨.

  • 시스템 환경변수에 변수 지정하기 error-1
    이 방법은 오류 그대로 뱉어냈었음.


확대 이미지