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
trust_input=True
I still see some tiny overhead even in functions without inputs:
import pytensor import pytensor.tensor as pt fn = pytensor.function([], pt.zeros((5))) %timeit fn() # 4.76 µs ± 190 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) fn.trust_input=True %timeit fn() # 2.39 µs ± 91.9 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
Probably because trust_input avoids entering some loops.
trust_input
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
I still see some tiny overhead even in functions without inputs:
Probably because
trust_input
avoids entering some loops.The text was updated successfully, but these errors were encountered: