We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am attempting to use multiprocessing.pool in a part of my application that is outside of the taichi kernel.
My program structure is as follows in pseudo-code:
if __name__ == '__main__': import taichi as ti from file_a import function_a function_a()
In file_a:
import taichi as ti from file_b import function_b from file_c import function_c function_b() function_c()
in file_b
import taichi as ti print(j) def function_b(): do_stuff_with_taichi_functions
in file_c
import multiprocessing def function_c(): do_stuff_with_multiprocessing
I've noticed that what happens is I end up importing taichi many times:
The text was updated successfully, but these errors were encountered:
I actually found out that it was adding the file to the init that was causing the issue
Sorry, something went wrong.
No branches or pull requests
I am attempting to use multiprocessing.pool in a part of my application that is outside of the taichi kernel.
My program structure is as follows in pseudo-code:
In file_a:
in file_b
in file_c
I've noticed that what happens is I end up importing taichi many times:
The text was updated successfully, but these errors were encountered: