LTC: reuse compiled graph (#72936)
* LTC: reuse compiled graph
* support graph input that does not having corresponding method parameter
* keep the hash for the compiled graph and use the hash to lookup the graph for future runs
* refactor so the optimize method can be used in other repo like dynamo
* handle TSData containing a scalar and add test_addcmul to cover that
* handle Fx graph returning multiple items
* cleanup PR for review