-
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
[OpCompat] add cast and repeat_interleave in op_compat.yaml #55467
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@kangguangli Coverage应该是随机挂,可以review了 |
- op : cast | ||
inputs : | ||
x : X | ||
|
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.
需要给output也添加映射
outputs :
out : Out
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.
legacy_ops.yaml
这里需不需要把
- op : cast
args : (Tensor x, DataType dtype)
output : Tensor
修改为
- op : cast
args : (Tensor x, DataType dtype)
output : Tensor(out)
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.
应该不需要, @heavyrain-lzy 麻烦帮忙确认下
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.
在自动生成静态图代码中
,如果output
如果只有一个且不配置,默认为是out
,不影响静态图代码自动生成;如果在new IR也可以这样使用默认配置的话,这里就可以不用修改
@gouzil 这两个Op可能特殊点,可以注意比较下它们的xxx_op.cc文件和它们在 |
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
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
- op : cast | ||
inputs : | ||
x : X | ||
|
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.
在自动生成静态图代码中
,如果output
如果只有一个且不配置,默认为是out
,不影响静态图代码自动生成;如果在new IR也可以这样使用默认配置的话,这里就可以不用修改
…ddle#55467) * add cast and repeat_interleave * fix
…ddle#55467) * add cast and repeat_interleave * fix
PR types
Others
PR changes
Others
Description
添加 cast 和 repeat_interleave 的算子参数映射