-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 new API inner&outer #37706
Add new API inner&outer #37706
Conversation
Thanks for your contribution! |
var_names = {'x': x, 'y': y} | ||
for name, val in var_names.items(): | ||
check_variable_and_dtype(val, name, | ||
['float16', 'float32', 'float64'], 'inner') |
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.
shall we support data type of complexfloat64 and complexfloat128 ?
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.
复数后面再支持
var_names = {'x': x, 'y': y} | ||
for name, val in var_names.items(): | ||
check_variable_and_dtype(val, name, | ||
['float16', 'float32', 'float64'], 'inner') |
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.
shall we support data type of complexfloat64 and complexfloat128 ?
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.
复数后面再支持
Sorry to inform you that 78191ad's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
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.
LGTM
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.
LGTM
python/paddle/tensor/math.py
Outdated
Outer product of two Tensors. | ||
|
||
Args: | ||
x (Tensor): The input tensor which is a Tensor. |
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.
这个描述,更新一下吧。
python/paddle/tensor/math.py
Outdated
user to set this property. For more information, please refer to :ref:`api_guide_Name` | ||
|
||
Returns: | ||
Tensor: The inner product Tensor. |
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.
写错了。
7d6ee6e
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.
lgtm
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.
LGTM
2aac974
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.
LGTM
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.
lgtm
PR types
New features
PR changes
APIs
Describe
Add new API inner&outer
paddle.inner Examples:
paddle.outer Examples: