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

update torch.quantile, torch.nanquantile and corresponding tensor methods #383

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

Copy link

paddle-bot bot commented Apr 2, 2024

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Apr 2, 2024
"""
import torch
x = torch.tensor([[0]], dtype=torch.float64)
result = x.nanquantile(interpolation='higher', keepdim=True, dim=1, q=0.3)
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以针对 interpolation 多测几个不同的值,验收下interpolation的不同取值是不是都完全写对了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

interpolation,每个可取的值 都需要测一下

@zhwesky2010 zhwesky2010 merged commit c7bbf82 into PaddlePaddle:master Apr 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants