-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Tensor Operants & Prim] Tensor arithmetic operants support right scalar type #50563
Merged
jiahy0825
merged 21 commits into
PaddlePaddle:develop
from
jiahy0825:support_scalar_type
Feb 23, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5aedfbb
polish namespace
jiahy0825 d77ab6d
change static_tensor_operants
jiahy0825 38e538d
polish namespace
jiahy0825 7c40d56
support add, subtract, divide
jiahy0825 2c691e9
add unit test
jiahy0825 b36d21c
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 5b891e9
polish unittest
jiahy0825 79ff8b5
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 f866e0b
fix cmake error
jiahy0825 195c87e
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 2fad9d0
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 07f55f0
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 48d0ac8
solve conflicts, merge auto code-gen
jiahy0825 04dbf27
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 0941187
add scalar operator in tensor.h
jiahy0825 85e5239
tensorbase
jiahy0825 716a0cc
static prim full support more datatype
jiahy0825 e43694e
fix prim unittest
jiahy0825 7a2b195
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jiahy0825 c36fb86
polish codes
jiahy0825 7d2fc4a
fix cmake error
jiahy0825 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we don't need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以加法为例,虽然用户不再需要调用 add 函数,可以直接调用 + 运算符。
但是重载后的 + 操作,实际依赖的还是 add 函数,因此需要保留这几项,自动生成 add 函数的声明。
Although users could invoke the
+
operant directly without calling theadd
function, in fact, the overloaded+
operant relies on theadd
function. Hence, we need to keep these items to generate anadd
declaration automatically.