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
So I am looking at code here:
if resources is not None: assert "CPU" not in resources, "Use the 'num_cpus' argument." assert "GPU" not in resources, "Use the 'num_gpus' argument."
This is not a good idea. assert statements are ignored when running Python with optimizations.
assert
Or is this the intent?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
So I am looking at code here:
This is not a good idea.
assert
statements are ignored when running Python with optimizations.Or is this the intent?
The text was updated successfully, but these errors were encountered: