-
Notifications
You must be signed in to change notification settings - Fork 53
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
转换规则 No. 271/273/280/283/297/298/301/325/337/343-344 #185
Conversation
Thanks for your contribution! |
import torch | ||
input = torch.zeros(3, 3) | ||
src = torch.ones(3) | ||
result = input.diagonal_scatter(src) |
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.
这个API可以用diagonal和scatter来组合实现吗?
在认为API缺失时,需要根据公式,看下能否通过多个API来组合
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.
已删除再提交PR
obj = APIBase("torch.Tensor.is_conj") | ||
|
||
|
||
def test_case_1(): |
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.
这个参考下 is_contiguous
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.
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.
那就功能缺失来吧
tests/test_Tensor_scatter_reduce.py
Outdated
result = input.scatter_reduce(0, index, src, reduce="sum") | ||
""" | ||
) | ||
obj.run( |
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.
这个API可以组合实现不
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.
已删除再提交PR
tests/test_diagonal_scatter.py
Outdated
obj = APIBase("torch.diagonal_scatter") | ||
|
||
|
||
def test_case_1(): |
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.
确认下能否组合实现
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.
已删除再提交PR
obj = APIBase("torch.is_conj") | ||
|
||
|
||
def test_case_1(): |
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.
参考下 is_contiguous
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.
tests/test_scatter_reduce.py
Outdated
obj = APIBase("torch.scatter_reduce") | ||
|
||
|
||
def test_case_1(): |
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.
同Tensor.scatter_reduce
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.
已删除再提交PR
obj = APIBase("torch.Tensor.is_conj") | ||
|
||
|
||
def test_case_1(): |
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.
那就功能缺失来吧
PR Docs
#112
均为不支持API
映射文档 PaddlePaddle/docs#6020
PR APIs