pytorch/test/cpp
Kevin Stephano ec916bf6af Create Cache for Fusion Reuse in NVFuser in Python Frontend for Primtorch (#83267)
This PR does the following:

- Replaces the `FusionOwner` with a `FusionCache` and `FusionInterface`.  The `FusionCache` is a singleton that contains a cache of Fusions based on the `FusionDefinition`.  It replaces the TorchScript graph caching that looked up a Fusion based on a stringified and canonicalized representation of the TorchScript graph with a prefix tree of statements in the `FusionDefinition`.  The `FusionInterface` is an object that represents a Fusion in python.  It can also query the cache based on id.
- The ability to print out a mechanically derived definition, in python, for the user to use when debugging was added.
- Replaces the python `examples` directory with true python tests under `test/test_nvfuser_frontend.py`.
- Adds a set of C++ tests under the `test` directory to verify the `FusionCache`, `FusionDefinition`, and parts of the `RecordFunctor` child classes.
- Adds a README file to explain how to use the Python Frontend

While there are 3,000+ line edits, the bulk of the changes were repetitive line changes to the python bindings for each operation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83267
Approved by: https://github.com/jjsjann123, https://github.com/davidberard98
2022-09-13 23:28:39 +00:00
..
api [C++ API] Added missing antialiasing path in interpolation C++ api (#84599) 2022-09-13 03:54:07 +00:00
c10d New TORCH_UCC_BLOCKING_WAIT env variable (#81791) 2022-08-25 21:33:17 +00:00
common
dist_autograd [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
jit Create Cache for Fusion Reuse in NVFuser in Python Frontend for Primtorch (#83267) 2022-09-13 23:28:39 +00:00
lazy Back out "Revert D38984222: Don't introduce new overload for SymInt (#83628)" (#84173) 2022-08-29 18:01:07 +00:00
lite_interpreter_runtime Back out "Back out "[profiling] Adding targets file for test_mobile_profiler"" (#82243) 2022-07-28 23:08:52 +00:00
monitor torch/monitor: merge Interval and FixedCount stats (#72009) 2022-01-30 23:21:59 +00:00
profiler Add SOFT_ASSERT to gracefully recover from invariant violations (#82689) 2022-08-10 00:58:07 +00:00
rpc [lint] autoformat test/cpp and torch/csrc 2022-06-11 21:11:16 +00:00
tensorexpr Delete SymIntArrayRef wrapper struct (#84837) 2022-09-12 20:04:01 +00:00
__init__.py