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

Make einsum_v2 support multi-operands #42327

Merged
merged 4 commits into from Apr 29, 2022

Conversation

2742195759
Copy link
Contributor

PR types

New features

PR changes

APIs

Describe

Extend python einsum interface to make einsum_v2 support multi-operands and switch it to default.

TODO:

  1. [Explicitly Broadcast] Current don't support explicitly broadcast. Conner Case, support later.
  2. [Exception Compatibility] Current some C++ exception is not the same with einsum_v1 exception.

@paddle-bot-old
Copy link

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

paddle/phi/kernels/impl/einsum_impl.h Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dingjiaweiww dingjiaweiww left a comment

Choose a reason for hiding this comment

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

LGTM

@2742195759 2742195759 merged commit 32cae24 into PaddlePaddle:develop Apr 29, 2022
@2742195759 2742195759 deleted the einsum_opt_bacward branch April 29, 2022 05:21
2742195759 added a commit to 2742195759/Paddle that referenced this pull request Apr 29, 2022
* Extend python einsum interface to make einsum_v2 support multi-operands and switch it to default.

* add opt_einsum dependence

* add yaml and support eager model

* fix by code review
phlrain pushed a commit that referenced this pull request Apr 30, 2022
* Extend python einsum interface to make einsum_v2 support multi-operands and switch it to default.

* add opt_einsum dependence

* add yaml and support eager model

* fix by code review
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

4 participants