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

[einsum] refactored and supporting unknown shapes in static mode #40360

Merged
merged 9 commits into from
Mar 15, 2022

Conversation

tongxin
Copy link
Contributor

@tongxin tongxin commented Mar 9, 2022

PR types

New features

PR changes

APIs

Describe

Refactor einsum to support the static mode execution. Operands with unknown shapes are allowed.

Example,

paddle.enable_static()
a = paddle.static.data(name='a', shape=[3, None, None, None], dtype='float')
b = paddle.static.data(name='b', shape=[2, None, None, None], dtype='float')
c = paddle.einsum("ibnd,jbnd->bnij", a, b) 

@tongxin tongxin requested a review from Aurelius84 March 9, 2022 08:47
@paddle-bot-old
Copy link

paddle-bot-old bot commented Mar 9, 2022

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

Copy link
Contributor

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aurelius84 Aurelius84 merged commit 187fcfa into PaddlePaddle:develop Mar 15, 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.

None yet

2 participants