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

Make LCPAN also pass the activator to DepthwiseSeparable #9280

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nicklasb
Copy link

@nicklasb nicklasb commented Jan 13, 2025

Without this, nn.Hardswish() will be selected in ConvBNLayer, which causes the opset version to be bumped to 14, in turn, and in my case, breaks ESP-DL ONNX quantization, which only supports 13.

I would also suspect that this is more correct also in other cases as one would not be likely to not want to use a specific activation function everywhere, would one supply it.

Also, it aligns with how the act-parameter is handled in other cases.

(accidentally first did the PR against a release branch)

Without this, nn.Hardswish() will be selected in ConvBNLayer, which causes the opset version to be bumped to 14, in turn breaking a ESP-DL onnx quantization, which only  supports 13. 

I would also suspect that this is more correct also in other cases as one would not be likely to not want to use a specific activation function everywhere, would one supply it. 

Also, it aligns with how the act-parameter is handled in other cases.
Copy link

paddle-bot bot commented Jan 13, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented Jan 13, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants