使用Tensorflow2.0时的警告消息

时间:2020-02-22 20:36:20

标签: python python-3.x tensorflow keras

我目前正在使用tensorflow 2.0和keras构建模型。当我尝试创建数据集时,会引发警告。

WARNING:tensorflow:Entity <function preprocess at 0x7f16920111e0> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Bad argument number for Name: 3, expecting 4 WARNING: Entity <function preprocess at 0x7f16920111e0> could not be transformed and will be executed as-is. Please report this to the AutoGraph team. When filing the bug, set the verbosity to 10 (on Linux, export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: Bad argument number for Name: 3, expecting 4

此外,当我尝试训练模型时,它再次向我抛出以下警告。

训练500步,验证2步 时代1/5 WARNING:tensorflow:Entity .initialize_variables at 0x7f1614748510>无法转换,将按原样执行。请将此情况报告给AutoGraph团队。提交错误时,将详细程度设置为10(在Linux上,导出AUTOGRAPH_VERBOSITY = 10)并附加完整的输出。原因:模块“ gast”没有属性“ Num”

警告:0x7f1614748510处的实体.initialize_variables>无法转换,将按原样执行。请将此情况报告给AutoGraph团队。提交错误时,将详细程度设置为10(在Linux上为'export AUTOGRAPH_VERBOSITY = 10')并附加完整的输出。原因:模块“ gast”没有属性“ Num”

有人可以帮我吗?我必须重新安装tensorflow吗?我正在使用python3.6

0 个答案:

没有答案