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] [refactor] Separate CustomFixedType from CustomFloatType #5149

Merged
merged 3 commits into from
Jun 14, 2022

Conversation

strongoier
Copy link
Contributor

@strongoier strongoier commented Jun 13, 2022

Related issue = #4857, #3382

Previously, ti.types.quant.fixed and ti.types.quant.float are both represented as CustomFloatType. However, they are essentially different things, and indeed handled in almost completely different code paths. The heavy dispatch and misleading names make the code hard to maintain. This PR separates a CustomFixedType out for ti.types.quant.fixed.

@netlify
Copy link

netlify bot commented Jun 13, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 2192ede
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/62a6e60f7962650009008b69
😎 Deploy Preview https://deploy-preview-5149--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 ailzhang and k-ye June 14, 2022 03:22
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the cleanup!

taichi/codegen/codegen_llvm.h Show resolved Hide resolved
@strongoier strongoier merged commit 633c628 into taichi-dev:master Jun 14, 2022
@strongoier strongoier deleted the separate-fixed-from-float branch June 14, 2022 05:57
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