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

Support dispensable inputs for eager final state codegen #39743

Merged
merged 4 commits into from
Feb 23, 2022

Conversation

jim19930609
Copy link
Contributor

PR types

New features

PR changes

Others

Describe

Operator developers may mark an input tensor as "optional", where Tensor-typed input will be generated as "paddle::optional" and Vector-typed input will be generated as is.

At runtime, if any "NULL" input were detected at Python-C level, we will either pass through an uninitialized "paddle::optional" object or an empty vector, depending on the input type.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@jim19930609 jim19930609 force-pushed the eager_final_dispensable branch from 40ec920 to 383b27f Compare February 21, 2022 02:57
@jim19930609 jim19930609 merged commit ca11a0e into PaddlePaddle:develop Feb 23, 2022
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

Successfully merging this pull request may close these issues.

2 participants