pytorch
3a3959d2 - [jit] Add a utility class SourceRef to represent Source as keys (#57396)

Commit
3 years ago
[jit] Add a utility class SourceRef to represent Source as keys (#57396) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57396 A new type SourceRef is introduced to represent a unique identifier to source text. The type holds refcount to underlying source, and supports comparators and hash functions, such that it can be used in C++ and Python maps. In later diffs we will use this to aggregate and print profiling information. Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D28133578 fbshipit-source-id: c3d5199a8269c5006c85a145b281bcaaf3e2dc1c
Author
Parents
Loading