-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add tile_grad composite rule #53141
add tile_grad composite rule #53141
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
将之前的pr链接在这个pr下面吧
已加 |
if (out_grad_shape[i] == -1) { | ||
out_grad_shape[i] = x_shape[i] * repeat_times_data[i]; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么out_grad_shape会出现 -1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
输入x和repeat_times的维度不一致,会出现-1
} else { | ||
int diff = repeat_times_data.size() - x_shape.size(); | ||
x_shape.insert(x_shape.begin(), diff, 1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repeat_times的大小在什么情况下大于x的size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class TestTileOpRank2Expanding(TestTileOpRank1):
def init_data(self):
self.ori_shape = [120]
self.repeat_times = [2, 2]
会有这种case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for rules
* add tile_grad composite rule
PR types
Others
PR changes
Others
Description
add tile_grad composite rule
孟子恒同学原先的pr #52609