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

[type] Decouple quant from SNode 4/n: Add exponent info to BitStructType #5407

Merged
merged 9 commits into from
Jul 14, 2022

Conversation

strongoier
Copy link
Contributor

Related issue = #4857

Previously, BitStructType only contained member types and member offsets, which were not enough to handle QuantFloatType, making quant codegen rely on SNode info. This PR adds exponent info to BitStructType so that it becomes possible to handle QuantFloatType (with or without shared exponent) without SNode info.

@netlify
Copy link

netlify bot commented Jul 13, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit d717020
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62ceb78222f128000853044a
😎 Deploy Preview https://deploy-preview-5407--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@strongoier strongoier requested review from k-ye and ailzhang July 13, 2022 07:17
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM!

taichi/ir/type.cpp Show resolved Hide resolved
tests/cpp/ir/type_test.cpp Show resolved Hide resolved
@ailzhang ailzhang merged commit 981091e into taichi-dev:master Jul 14, 2022
@strongoier strongoier deleted the bitpack-0 branch July 14, 2022 02:15
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