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


如果您觉得此文章可以帮得到你,可以打赏作者!!

打赏作者

标签: tf, tensorflow