Optimize printing sympy expressions during logging and cache key computation #151823
Labels
module: dynamic shapes
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
repo:
We have a fast print implementation used in inductor here
pytorch/torch/_inductor/utils.py
Lines 652 to 667 in 625b4ed
maybe we can reuse it?
profile:
internal xref:
https://fb.workplace.com/groups/1075192433118967/permalink/23929961646604309/
Note this part is disabled from the model compilation even we can enable it after we fix this .
even though its not there we still see 10% cost for printing sympy expression in full model compilation
https://docs.google.com/document/d/1H-jueMz5VJuX6qVzyBl10OhlWWkxhAjp74JGtl7JhKg/edit?ouid=111904611073736927346&usp=docs_home&ths=true
cc @chauhang @penguinwu @ezyang @bobrenjc93
The text was updated successfully, but these errors were encountered: