karrey05 / tensorflow

0 stars 0 forks source link

Create serving graphs and export a saved model #1

Open lakshmanok opened 6 years ago

lakshmanok commented 6 years ago

Could you change your TensorFlow code samples as suggested in this Stack Overflow answer?

https://stackoverflow.com/questions/49660389/tensorflow-serving-ml-engine-online-prediction-json-file-format

karrey05 commented 6 years ago

@lakshmanok I have updated the code, and saved the model on ML engine. However, similar problem still persist. This is my JSON file:

{"x":[[[0.1],[0.2],[0.3],[0.4],[0.5],[0.6],[0.7],[0.8],[0.9],[0.10],[0.11],[0.12]]]}

This is the ML engine error message I got:

{ "error": "Prediction failed: Error during model execution: AbortionError(code=StatusCode.INVALID_ARGUMENT, details=\"NodeDef mentions attr 'identical_element_shapes' not in Op<name=TensorArrayV3; signature=size:int32 -> handle:resource, flow:float; attr=dtype:type; attr=element_shape:shape,default=; attr=dynamic_size:bool,default=false; attr=clear_after_read:bool,default=true; attr=tensor_array_name:string,default=\"\"; is_stateful=true>; NodeDef: rnn/TensorArray_1 = TensorArrayV3_output_shapes=[[2], []], clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,1], identical_element_shapes=true, tensor_array_name=\"rnn/dynamic_rnn/input_0\", _device=\"/job:localhost/replica:0/task:0/device:CPU:0\". (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).\n\t [[Node: rnn/TensorArray_1 = TensorArrayV3[_output_shapes=[[2], []], clear_after_read=true, dtype=DT_FLOAT, dynamic_size=false, element_shape=[?,1], identical_element_shapes=true, tensor_array_name=\"rnn/dynamic_rnn/input_0\", _device=\"/job:localhost/replica:0/task:0/d...TRUNCATED\")" }