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

Add HasInputs/HasOutputs in shape interface #4434

Closed
Yancey1989 opened this issue Sep 27, 2017 · 2 comments
Closed

Add HasInputs/HasOutputs in shape interface #4434

Yancey1989 opened this issue Sep 27, 2017 · 2 comments

Comments

@Yancey1989
Copy link
Contributor

Maybe we need to add interfaces HasInputs/HasOutputs in InferShapeContextBase

@typhoonzero
Copy link
Contributor

More details please?

Can this be done by

PADDLE_ENFORCE_NOT_NULL(ctx.InputVar("Input"),
                            "some error.");

@Yancey1989
Copy link
Contributor Author

Maybe there is no InputVar in InferShapeContextBase. After Refactoring InferShape, the inferface name in Infershape context become more clearly, but there is only HasInput/HasOutput to check single Input/Output, so I want to add HasInputs/HasOutputs to check MultiInput/MultiOutput.

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