-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle multi tensors input? #9
Comments
I have solved my problem by pre-define dropout_prob as a tf.constant before export the model. |
Unfortunately, neither our standard ClassificationSignature nor RegressionSignature supports multiple input binding for now. You can however, use GenericSignature to specify arbitrary number of inputs and outputs. You can use exporter.generic_signature() to create it. Then provide it as default_signature in exporter.export(). |
Got it. Thanks for explanation. |
@doubler would it be possible for you to share a code example of how you set the |
@insectatorious no need to set the |
@doubler I don't understand your explanation. What do you mean by "feed it with 1.0 as input"? Below is the inception signature for a standard image classification:
Could you show how is yours with two inputs? Do you have to redefine the Thanks for help. |
The mnist example shows how to use the model with one input tensor x and one output tensor y.
While I have two input, tensor x and a tf.placeholder named dropout_prob.
If I don't specify the dropout_prob value, it will produce error output log like
Would you please show some example with multi input tensors or multi output tensors?
The text was updated successfully, but these errors were encountered: