This PR improves the parsing of subgraphs for Torch graphs by (1) explicitly parsing input nodes in the TorchGraph class and (2) moving some of the pruning of tensor nodes into the Graph tracer to avoid ambiguity.
I also rearrange the code slightly
Refactored out the GraphExecutor to a separate file with separate tests
Renamed Graph to TorchGraph and added tests for inputs
Added specialized functions for processing input nodes and edges
This PR improves the parsing of subgraphs for Torch graphs by (1) explicitly parsing input nodes in the TorchGraph class and (2) moving some of the pruning of tensor nodes into the Graph tracer to avoid ambiguity.
I also rearrange the code slightly