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

请问这里的量化是说每个输入通道一个scale吗? #1

Open
iamhankai opened this issue Oct 18, 2022 · 3 comments
Open

请问这里的量化是说每个输入通道一个scale吗? #1

iamhankai opened this issue Oct 18, 2022 · 3 comments

Comments

@iamhankai
Copy link

self.alpha = Parameter(torch.Tensor(in_features))

@YanjingLi0202
Copy link
Owner

是的,我们是input channel-wise的方法。

@iamhankai
Copy link
Author

那linear层怎么用int矩阵乘法做加速呢,是不是还要还原成fp32去做矩阵乘法?

@YanjingLi0202
Copy link
Owner

linear层的加速应该跟conv层类似需要dequantize成fp32,具体实际部署需要使用部署框架。

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

No branches or pull requests

2 participants