标签 tf 下的文章

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR

I0000 00:00:1791713427.005373 8200 port.cc:153] oneDNN custom operations are on. You may see slightly different nu
merical results due to floating-point round-off errors from different computation orders. To turn them off, set the e
nvironment variable TF_ENABLE_ONEDNN_OPTS=0.

根据以上指示增加代码

import os
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
import tensorflow as tf