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

[refactor] Cleanup python imports #2232

Merged
merged 2 commits into from
Mar 24, 2021
Merged

[refactor] Cleanup python imports #2232

merged 2 commits into from
Mar 24, 2021

Conversation

k-ye
Copy link
Member

@k-ye k-ye commented Mar 24, 2021

python/taichi/lang/impl.py Show resolved Hide resolved
f'ti.init argument "default_fp" overridden by environment variable TI_DEFAULT_FP={env_default_fp}'
)
if env_default_fp == '32':
default_fp = f32
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, not sure if my previous refactoring has already broken this..

Copy link
Member

Choose a reason for hiding this comment

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

Not sure how many people use this - it would be nice to make it testable in the future when we have more people :-)

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

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

Awesome, LGTM! Thanks for all the cleanups so far! Let's somehow continuously enforce the import rules you established :-)

f'ti.init argument "default_fp" overridden by environment variable TI_DEFAULT_FP={env_default_fp}'
)
if env_default_fp == '32':
default_fp = f32
Copy link
Member

Choose a reason for hiding this comment

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

Not sure how many people use this - it would be nice to make it testable in the future when we have more people :-)

@k-ye k-ye merged commit 41ccd9b into taichi-dev:master Mar 24, 2021
@k-ye k-ye deleted the fix-py branch March 24, 2021 09:00
@xumingkuan xumingkuan mentioned this pull request Apr 13, 2021
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