Skip to content

How do you send the request if you have two input nodes? #9

Open
@ackbar03

Description

@ackbar03

Hi,

In my normal model I need to dict.feed two placeholders into the model to run. I've also defined it as such in my tensorflow serving

prediction_signature = (
tf.saved_model.signature_def_utils.build_signature_def(
inputs={'image': tensor_info_x1, 'im_info': tensor_info_x2},
outputs={'cls_score': tensor_info_y1, 'cls_prob': tensor_info_y2, 'bbox_pred': tensor_info_y3,
'rois_l3': tensor_info_y4},
method_name=tf.saved_model.signature_constants.PREDICT_METHOD_NAME
)
)

How do I put that in the req_data list? I'm currently doing

[{'in_tensor_name': 'Placeholder:0', 'in_tensor_dtype': 'DT_FLOAT', 'data': blobs['data']},
{'in_tensor_name': 'Placeholder_1:0', 'in_tensor_dtype': 'DT_FLOAT', 'data': blobs['im_info']}

]

but I keep getting the error

<_Rendezvous of RPC that terminated with (StatusCode.FAILED_PRECONDITION, Serving signature key "serving_default" not found.)>
Prediction failed!

I'm suspect its because the request data isn't being formatted correctly.

Help!

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions