model-analysis icon indicating copy to clipboard operation
model-analysis copied to clipboard

Is line #96 of examples/chicago_taxi/model.py example a bug ?

Open nilbody opened this issue 8 years ago • 3 comments

https://github.com/tensorflow/model-analysis/blob/2fb97d4d6bac1b800c340ca9a6f2393bd5169cf2/examples/chicago_taxi/trainer/model.py#L96

The tf.estimator.export.ServingInputReceiver has only a constructor with 2 parameters which are features and receiver_tensors. But in line#96 ServingInputReceiver is created with 2 parameters : transformed_features and serving_input_receiver.features, no receiver_tensors.

nilbody avatar Aug 20 '18 13:08 nilbody

You are right, this is indeed a bug. It should pass serving_input_receiver.receiver_tensors as the second argument instead.

chuanyu avatar Aug 20 '18 23:08 chuanyu

@chuanyu - Is this fixed now ?

Harshini-Gadige avatar Oct 23 '18 22:10 Harshini-Gadige

Yes, this has been fixed.

chuanyu avatar Oct 24 '18 01:10 chuanyu