simple_tensorflow_serving icon indicating copy to clipboard operation
simple_tensorflow_serving copied to clipboard

TypeError: 'ValuesView' object does not support indexing

Open xxllp opened this issue 5 years ago • 2 comments

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

xxllp avatar May 27 '19 08:05 xxllp

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

tobegit3hub avatar May 27 '19 08:05 tobegit3hub

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.

xxllp avatar May 28 '19 01:05 xxllp