hanker

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_ONEDN 본문

Python/Python Error

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_ONEDN

hanker 2024. 9. 23. 17:39
반응형

텐서 플로우 설정 도중 생긴 에러

 

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`.

 

해당 오류 나오면 

os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'

코드내 환경변수를 추가해줘도 안되는 경우가 있는데, import os 바로 밑에 추가해주면 된다.

 

 

import os

os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'

import tensorflow as tf

 

 

끝.

반응형