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

转换规则 No. 271/273/280/283/297/298/301/325/337/343-344 #185

Merged
merged 4 commits into from
Jul 24, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 21, 2023

PR Docs

#112
均为不支持API

映射文档 PaddlePaddle/docs#6020

PR APIs

271 torch.vsplit
273 torch.hsplit
280 torch.Tensor.hsplit
283 torch.Tensor.vsplit
297 torch.Tensor.dsplit

298 torch.Tensor.bitwise_right_shift
301 torch.bitwise_right_shift
325 torch.Tensor.is_conj
337 torch.is_conj

343 torch.set_deterministic_debug_mode
344 torch.get_deterministic_debug_mode

@paddle-bot
Copy link

paddle-bot bot commented Jul 21, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jul 21, 2023
@co63oc co63oc changed the title 转换规则 No. 298/301/325/337/339-348 转换规则 No. 271/273/280/283/297/298/301/325/337/339-348 Jul 21, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 21, 2023
ROckDog22
ROckDog22 previously approved these changes Jul 21, 2023
import torch
input = torch.zeros(3, 3)
src = torch.ones(3)
result = input.diagonal_scatter(src)
Copy link
Collaborator

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来组合

Copy link
Contributor Author

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():
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个参考下 is_contiguous

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Paddle最新代码搜索没有is_contiguous
图片

Copy link
Collaborator

Choose a reason for hiding this comment

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

那就功能缺失来吧

result = input.scatter_reduce(0, index, src, reduce="sum")
"""
)
obj.run(
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个API可以组合实现不

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已删除再提交PR

obj = APIBase("torch.diagonal_scatter")


def test_case_1():
Copy link
Collaborator

Choose a reason for hiding this comment

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

确认下能否组合实现

Copy link
Contributor Author

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():
Copy link
Collaborator

Choose a reason for hiding this comment

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

参考下 is_contiguous

Copy link
Contributor Author

@co63oc co63oc Jul 24, 2023

Choose a reason for hiding this comment

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

Paddle最新代码搜索没有is_contiguous
图片

obj = APIBase("torch.scatter_reduce")


def test_case_1():
Copy link
Collaborator

Choose a reason for hiding this comment

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

同Tensor.scatter_reduce

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已删除再提交PR

@co63oc co63oc changed the title 转换规则 No. 271/273/280/283/297/298/301/325/337/339-348 转换规则 No. 271/273/280/283/297/298/301/325/337/343-344 Jul 24, 2023
obj = APIBase("torch.Tensor.is_conj")


def test_case_1():
Copy link
Collaborator

Choose a reason for hiding this comment

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

那就功能缺失来吧

@zhwesky2010 zhwesky2010 merged commit 1092bef into PaddlePaddle:master Jul 24, 2023
@co63oc co63oc deleted the doc0721_3 branch August 4, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants