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

[bug] Allow StructType as type hint to ti.func #6964

Merged
merged 1 commit into from Dec 23, 2022

Conversation

strongoier
Copy link
Contributor

Issue: fix #6855

Brief Summary

Note that this PR is a quick hack to allow the type hint but doesn't check invalid cases. We would like to wait for the upcoming new struct type representation to officially support struct type as kernel/func parameters.

@netlify
Copy link

netlify bot commented Dec 22, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 8538a61
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63a4470b09e26200098fe1e8
😎 Deploy Preview https://deploy-preview-6964--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.

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.

Thanks!

@strongoier strongoier merged commit 6268cfb into taichi-dev:master Dec 23, 2022
@strongoier strongoier deleted the fix-6855 branch December 23, 2022 03:36
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: fix taichi-dev#6855

### Brief Summary

Note that this PR is a quick hack to allow the type hint but doesn't
check invalid cases. We would like to wait for the upcoming new struct
type representation to officially support struct type as kernel/func
parameters.
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.

Struct types cannot be used with type hints as arguments to @ti.func
2 participants