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

split freeze and fix some small bugs #19

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

Conversation

crazy-JiangDongHua
Copy link

@crazy-JiangDongHua crazy-JiangDongHua commented Mar 5, 2023

  1. freeze()拆成reuse_qparam()freeze(),前者复用qparam,后者负责提前计算。这样做的优点是每次推理的时候免除了freeze()部分的计算(例如M),缺点是部分qparam被重复保存。
  2. 统一buffer被保存的shapetorch.Size([]),避免M读取时的类型冲突。
  3. 添加了一些操作,非常粗糙地模拟32位定点数乘法。
  4. 修复了QReLUQMaxPooling2d会多存一个qo的bug。

@Jermmy
Copy link
Owner

Jermmy commented Dec 29, 2023 via email

Repository owner deleted a comment Feb 2, 2024
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