Skip to content

Conversation

@baoachun
Copy link
Contributor

@baoachun baoachun commented Sep 4, 2021

PR types

Others

PR changes

Others

Describe

Add flatten/flatten2 converter test cases.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 4, 2021

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

return np.random.random([batch, 32]).astype(np.float32)

for batch in [1, 2, 4]:
for axis in [0, 1]:
Copy link
Contributor

Choose a reason for hiding this comment

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

axis可以为负数吗?

Copy link
Contributor

Choose a reason for hiding this comment

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

或者可以为超出输入dim的数字吗

Copy link
Contributor Author

Choose a reason for hiding this comment

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

看OpMaker里说明axis的范围是[0, rank],就没有设置其他值

Copy link
Contributor Author

Choose a reason for hiding this comment

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

另外,在teller中已限制axis为1才会跑trt。

Copy link
Contributor

@jiweibo jiweibo left a comment

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo merged commit fb65268 into PaddlePaddle:develop Sep 13, 2021
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
* add flatten/flatten2 converter test cases

* add fatten/flatten2 trt converter test cases
@baoachun baoachun deleted the flatten_trt_check branch December 31, 2021 07:27
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.

2 participants