[Fix] aten_avg_pool1d 越界访问 avg_pool1d 不存在的 divisor_override - #1123
Open
Jian9ww wants to merge 1 commit into
Open
[Fix] aten_avg_pool1d 越界访问 avg_pool1d 不存在的 divisor_override#1123Jian9ww wants to merge 1 commit into
Jian9ww wants to merge 1 commit into
Conversation
aten::avg_pool1d 仅 6 个输入,无 divisor_override。原实现由 aten_avg_pool2d 复制而来,遗留了对第 7 个输入 inputs_name[6] 的 prim.assert,导致任何 AvgPool1d 转换必现 IndexError。删除该 divisor_override 处理,并修正 docstring 与算子命名。 补充 test_autoscan/torch 下的 avg_pool1d autoscan 回归测试(此前 torch 侧无任何 pooling 测试)。
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.
Fixes #1122
问题
aten::avg_pool1d 仅 6 个输入 (input, kernel_size, stride, padding, ceil_mode, count_include_pad),无 divisor_override。aten_avg_pool1d 由 aten_avg_pool2d 复制而来,遗留了对第 7 个输入 inputs_name[6] 的 prim.assert,_get_inputs_name 返回长度为 6,导致任何 AvgPool1d 转换必现 IndexError (aten.py:685)。
改动
验证