[Bug] 修复torch\torch_npu回退问题 - #81
Open
Just-it wants to merge 5 commits into
Open
Conversation
优化ascend-coder ,add level3 INPUT_CASE
13 tasks
问题:INPUT_CASES 中 indices 的 range=[0, num_weights], _make_tensor 使用 randint(0, num_weights+1),可生成 index=num_weights, 对 output[num_weights, emb_dim] 越界写入。 CANN 对越界索引写入未定义内存导致输出损坏,任何正确实现(跳过越界) 会与 CANN 的损坏输出不匹配。 修复:将所有 30 个 case 的 range 上界从 num_weights 改为 num_weights-1。 Fixes #83
修复 24_EmbeddingDenseBackward 索引越界问题
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.
变更说明
变更类型
影响范围
性能数据(涉及算子生成/优化时必填)
Benchmark 评测(与 BASELINE.md 对比)
测试环境
冒烟测试(涉及算子生成/框架改动时必填)
验证清单
退化说明(如有通过率下跌)