Skip to content
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

Merged
merged 12 commits into from
Sep 22, 2021
Merged

Conversation

TeslaZhao
Copy link
Contributor

@TeslaZhao TeslaZhao commented Sep 20, 2021

PR types

New features

PR changes

OPs

Describe

transpose_op supports bool type input & output

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 20, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

x1 = fluid.layers.data(
name='x1', shape=[10, 5, 3], dtype='bool')
name='x1', shape=[10, 5, 3], dtype='int8')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为啥把 bool 改为 int8 ?
bool 不是新增吗?

Copy link
Contributor Author

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

Copy link
Contributor Author

@TeslaZhao TeslaZhao left a 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')
Copy link
Contributor Author

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

Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Superjomn Superjomn merged commit 0c6ee94 into PaddlePaddle:develop Sep 22, 2021
TeslaZhao added a commit to TeslaZhao/Paddle that referenced this pull request Sep 22, 2021
* 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
Superjomn pushed a commit that referenced this pull request Sep 23, 2021
* 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
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants