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

fix: pass loop variable as a function parameter #1470

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

hezhizhen
Copy link
Contributor

Signed-off-by: Zhizhen He hezhizhen.yi@gmail.com

Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
@hezhizhen
Copy link
Contributor Author

hezhizhen commented Feb 8, 2023

It's a naive way to handle it: wrap the whole part in an anonymous function and pass the loop variable as a function parameter. I think there should be a better way to fix it.

Btw, I wonder why the case works but the default fails.

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! 🎉 👍

@gaocegege gaocegege merged commit ae3a1e5 into tensorchord:main Feb 9, 2023
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