我在路德维希的训练中从TensorFlow得到了这个问题
C:\Users\FRT\Desktop\workspace\pipeline-builder-ide\python\python37\lib\site-
packages\typeguard__init.py:906: UserWarning: no type annotations present -- not
typechecking tensorflow_addons.layers.max_unpooling_2d.MaxUnpooling2D.init__ warn('no type
annotations present -- not typechecking {}'.format(function_name(func)))
路德维希模型经过训练,但我想隐藏这个警告。我试过了
warnings.filterwarnings("ignore")
warnings.warn = warn
warnings.simplefilter(action='ignore')
logging.getLogger('ludwig').disabled = True
logging.getLogger('typeguard').disabled = True
logging.getLogger('tensorflow').disabled = True
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
我一个接一个地尝试了所有这些解决方案,但都没有成功。警告仍在打印。我如何隐藏该警告,以及为什么会出现该警告
目前没有回答
相关问题 更多 >
编程相关推荐