[Big Tensor] Fix big tensor problem for paddle.nn.functional.class_center_sample#488
Merged
cangtianhuang merged 5 commits intoPFCCLab:mainfrom Aug 1, 2025
Merged
Conversation
|
Thanks for your contribution! |
cangtianhuang
requested changes
Aug 1, 2025
Collaborator
cangtianhuang
left a comment
There was a problem hiding this comment.
torch error的case需要放到torch_error_skip中呀~
Comment on lines
+1745
to
+1747
| paddle.nn.functional.class_center_sample(Tensor([356493278],"int32"), 10, 8, ) | ||
| paddle.nn.functional.class_center_sample(Tensor([356493280],"int32"), 10, 8, ) | ||
| paddle.nn.functional.class_center_sample(Tensor([2294967295],"int32"), 10, 8, ) |
Collaborator
There was a problem hiding this comment.
新增配置放到 tester/api_config/8_big_tensor/big_tensor_1_8.txt
tester/base_config.yaml
Outdated
| paddle.einsum: "(Unimplemented) cublas GEMM does not support N >" | ||
| paddle.nn.functional.class_center_sample: | ||
| - "(InvalidArgument) The total number of elements for 'label' should be less than" | ||
| - "(InvalidArgument) Illegal memory allocation, total allocated spacemust be greater than 0" |
Collaborator
There was a problem hiding this comment.
这个报错看上去是溢出了,不需要在paddle中修复嘛?
Contributor
Author
There was a problem hiding this comment.
Paddle 修复的方式在这里 PaddlePaddle/Paddle#74364
…fix_class_center_sample
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.
主要修复:
原始的case尺寸,贴着 unint32 的上限设置;对于所有的case样例来说都是Torch error;即超过了 Torch 的限制

并在 tester 中增加了 case 以验证以上修复点2,尽管新增的case不是大Tensor