我有一些训练有素的模型可以导入和比较,但是同样的代码给出了:
"WARNING tensorflow:From 'where its saved' colocate with (from tensorflow.python.framework.ops)
is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer."
以及其他 2 个弃用警告。
我用来导入模型的代码是:
"model_1 = load_model("filepath\\filename.h5")"
重新启动我的计算机解决了这个问题,但我很好奇为什么会发生这种情况,如果有人能解释的话。