ir_cache.py 321 B

12345678910111213
  1. import torch._C._lazy
  2. def dump(dot_file_name: str):
  3. """Dump TrieCache in the dot format"""
  4. return torch._C._lazy._dump_ir_cache(dot_file_name)
  5. def reset():
  6. """Clear TrieCache. This is needed in testing to avoid
  7. node reusing between different tests.
  8. """
  9. return torch._C._lazy._clear_ir_cache()