-
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
op:transpose_op supports bool type #35886
Conversation
✅ This PR's description meets the template requirements! |
Thanks for your contribution! |
x1 = fluid.layers.data( | ||
name='x1', shape=[10, 5, 3], dtype='bool') | ||
name='x1', shape=[10, 5, 3], dtype='int8') |
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.
这里为啥把 bool 改为 int8 ?
bool 不是新增吗?
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.
这个测试case是TestTransposeOpError,验证不支持的输入类型。即,在不支持bool输入时,设置bool报错,即验证不支持该类型。
现在已经支持bool类型,要修改为不支持的类型,目前不支持int8,所以设置int8
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.
这个测试case是TestTransposeOpError,验证不支持的输入类型。即,在不支持bool输入时,设置bool报错,即验证不支持该类型。
现在已经支持bool类型,要修改为不支持的类型,目前不支持int8,所以设置int8
x1 = fluid.layers.data( | ||
name='x1', shape=[10, 5, 3], dtype='bool') | ||
name='x1', shape=[10, 5, 3], dtype='int8') |
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.
这个测试case是TestTransposeOpError,验证不支持的输入类型。即,在不支持bool输入时,设置bool报错,即验证不支持该类型。
现在已经支持bool类型,要修改为不支持的类型,目前不支持int8,所以设置int8
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
* Pass compat of conv_transpose_bias_mkldnn_fuse_pass * Fix a bug of strided_slice op, about the axes parameter access memory out of bounds * Fix a bug of transpose op, about accessing memory out of bounds of the perm param * op:transpose_op supports bool type
* Pass compat of conv_transpose_bias_mkldnn_fuse_pass * Fix a bug of strided_slice op, about the axes parameter access memory out of bounds * Fix a bug of transpose op, about accessing memory out of bounds of the perm param * op:transpose_op supports bool type
* Pass compat of conv_transpose_bias_mkldnn_fuse_pass * Fix a bug of strided_slice op, about the axes parameter access memory out of bounds * Fix a bug of transpose op, about accessing memory out of bounds of the perm param * op:transpose_op supports bool type
PR types
New features
PR changes
OPs
Describe
transpose_op supports bool type input & output