tobegit3hub / simple_tensorflow_serving

Generic and easy-to-use serving service for machine learning models
https://stfs.readthedocs.io
Apache License 2.0
757 stars 195 forks source link

TypeError: 'ValuesView' object does not support indexing #53

Open xxllp opened 5 years ago

xxllp commented 5 years ago

File "D:/daima/dc/dl/深度学习案例/convert_estimator_savedmodel.py", line 33, in main signature_def.inputs.values()[0].name)

tobegit3hub commented 5 years ago

Thanks for reporting @xxllp . Are you using TensorFlow 2.0?

xxllp commented 5 years ago

I use tensorflow 1.13 ,and fix this by use [v.name for v in signature_def.inputs.values()] but can not understand the code

graph_editor.graph_replace get the error

ValueError: Dtypes <dtype: 'string'> and <dtype: 'uint8'> are not compatible.