Forcing constant folding or set max folding time #16569
Replies: 1 comment
-
I recently dealt with this, so I'm curious if there's a general solution as well. In my case just modified my function to avoid there being large constants to fold. In my case the issue was checking whether all gradients were finite (for using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It happens sometimes that a constant is taking long time to compile and I receive an error of this kind:
Is there any mechanism in place to force constant folding, or set a time threshold for it?
Beta Was this translation helpful? Give feedback.
All reactions