Merged
Conversation
|
Thanks for your contribution! |
zhwesky2010
reviewed
Jun 10, 2025
zhwesky2010
approved these changes
Jun 11, 2025
| "torch.distributions.TransformedDistribution": "torch.distributions.transformed_distribution.TransformedDistribution", | ||
| "torch.distributions.Uniform": "torch.distributions.uniform.Uniform", | ||
| "torch.divide": "torch.div", | ||
| "torch.double": "torch.float64", |
Collaborator
There was a problem hiding this comment.
还有一个torch.cfloat,下个PR统一加到文档与Matcher吧
| import torch | ||
| src = torch.tensor([1., 2., 3., 4., 5., 6.]) | ||
| result = src.bernoulli_(0.5) | ||
| result = src.bernoulli_(1.0) |
Collaborator
There was a problem hiding this comment.
p=1.0和p=0的两个case,各来1个吧
同时p=1.0和p=0下,不用打开check_value=False,值应该是对齐的。通过这种形式注释单测:
# paddle.Tensor.bernoulli_ parameter p is different from torch, which has bug
def _test_case_1():
...
# paddle.Tensor.bernoulli_ parameter p is different from torch, which has bug
def _test_case_2():
...
| obj.run( | ||
| pytorch_code, | ||
| ["result"], | ||
| reason="paddle.logaddexp does not support different data type", |
Collaborator
There was a problem hiding this comment.
这么描述:paddle.logaddexp does not support type promotion between int and float.
12 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Docs
PR APIs