You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Lowered object, i.e. a jitted function that has been lowered before compilation. I want to get a rough estimate of how big it is. One thing I can do is len(lowered_function.as_text()), though that does take a few seconds and it generates >10MB of text, so I wonder if there's some kind of raw representation of the lowering that I could measure instead. Is there?
Edit: I do know about .cost_analysis but it seems to take a long time to run for my code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a
Lowered
object, i.e. a jitted function that has been lowered before compilation. I want to get a rough estimate of how big it is. One thing I can do islen(lowered_function.as_text())
, though that does take a few seconds and it generates >10MB of text, so I wonder if there's some kind of raw representation of the lowering that I could measure instead. Is there?Edit: I do know about
.cost_analysis
but it seems to take a long time to run for my code.Beta Was this translation helpful? Give feedback.
All reactions