Skip to content

[ut bug fix opencl]opencl fix reshape/reshape2 bug#8364

Merged
zhaoyang-star merged 2 commits intoPaddlePaddle:developfrom
daming5432:fix_reshape_bug
Jan 29, 2022
Merged

[ut bug fix opencl]opencl fix reshape/reshape2 bug#8364
zhaoyang-star merged 2 commits intoPaddlePaddle:developfrom
daming5432:fix_reshape_bug

Conversation

@daming5432
Copy link
Collaborator

No description provided.

@paddle-bot-old
Copy link

Thanks for your contribution!

zhenlin-work
zhenlin-work previously approved these changes Jan 26, 2022
Copy link
Collaborator

@zhenlin-work zhenlin-work left a comment

Choose a reason for hiding this comment

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

LGTM

min_value=0, max_value=4),
min_size=len(in_shape),
max_size=len(in_shape)))
st.sampled_from([[
Copy link
Collaborator

Choose a reason for hiding this comment

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

attr_shape属性覆盖度不够吧,可以试试这样:

from functools import reduce
attr_shape = draw(st.lists(st.integers(min_value=1, max_value=max(in_shape)),min_size=1,max_size=len(in_shape)))
assume(reduce(lambda x, y:x*y, attr_shape) == reduce(lambda x, y:x*y, in_shape) )

Copy link
Collaborator

@zhenlin-work zhenlin-work left a comment

Choose a reason for hiding this comment

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

LGTM

@zhaoyang-star zhaoyang-star merged commit 2a83dec into PaddlePaddle:develop Jan 29, 2022
WeiLi233 pushed a commit to WeiLi233/Paddle-Lite that referenced this pull request Mar 29, 2022
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