Skip to content

[QualcommQnn] add tanh, unsqueeze, equal, slice, cast#9296

Merged
zhupengyang merged 1 commit intoPaddlePaddle:developfrom
zhupengyang:qnn_tanh
Jul 29, 2022
Merged

[QualcommQnn] add tanh, unsqueeze, equal, slice, cast#9296
zhupengyang merged 1 commit intoPaddlePaddle:developfrom
zhupengyang:qnn_tanh

Conversation

@zhupengyang
Copy link
Collaborator

No description provided.

@paddle-bot
Copy link

paddle-bot bot commented Jul 28, 2022

Thanks for your contribution!

hong19860320
hong19860320 previously approved these changes Jul 28, 2022
Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

// Force to restore the dimorder vector of the input operand
auto input_permutation = GetPermutation(input_operand);
auto transpose_input_permutation = InversePermutation(input_permutation);
if (!IsIdentityPermutation(transpose_input_permutation)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

先这样简单处理,后面再优化下,看看是否能类似squeeze一样处理,目的还是尽可能避免插入 transpose算子而带来的性能下降。

Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhupengyang zhupengyang merged commit 46cd113 into PaddlePaddle:develop Jul 29, 2022
@zhupengyang zhupengyang deleted the qnn_tanh branch July 29, 2022 02:26
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