keras_estimator.export_saved_model错误:预期键:{'dense_3_input'} \ n \ t功能键:{'dense_input'}

问题描述 投票:0回答:3

我遵循了这个协作(https://colab.research.google.com/github/GoogleCloudPlatform/ml-on-gcp/blob/master/tutorials/explanations/ai-explanations-tabular.ipynb),但是在export_saved_model部分失败。有人可以帮忙吗?谢谢。

enter image description here

tensorflow keras tensorflow-estimator
3个回答
0
投票

似乎您的输入名称与键名称不同


0
投票

我试图将其更改为serving_fn = tf.estimator.export.build_raw_serving_input_receiver_fn({'dense_3_input':model.input}),但它会生成另一个错误。可以在enter image description here]下的注释中找到该屏幕截图。


0
投票

[Here is the picture,不确定您现在是否可以看到它

© www.soinside.com 2019 - 2024. All rights reserved.