Skip to content
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

DropOut PlaceHolder should be a scalar, how to construct it with tensorProto #44

Open
shanghai-Jerry opened this issue Jul 24, 2019 · 2 comments

Comments

@shanghai-Jerry
Copy link

I construct it using BoolVal : []bool{fasle}, with shape dim size = 1, but it has errors like behind:

The second input must be a scalar, but it has shape [1]

I don't know how to solve it.

@tobegit3hub
Copy link
Owner

Since the model signature is the map of tensor, I don't think we can pass the scalar data in the request or describe it in the model signature.

I'm afraid that this convention requires users to set all the request parameters as list or tensor.

@shanghai-Jerry
Copy link
Author

all the request parameters as list or tensor

that's quite right. I am afraid causing that error is because of using a wrong model. But with a list like BoolVal : []bool{fasle} is a right way to construct request with tensorProto. I've tried different ways to load tensorflow models in golang, Here are some examples. TFMODEL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants