mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
Add docblock for TrackedFake (#154396)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/154396 Approved by: https://github.com/laithsakka ghstack dependencies: #154400, #154398
This commit is contained in:
parent
d311b79c12
commit
ed348e7026
|
|
@ -2129,10 +2129,13 @@ class SubclassSymbolicContext(StatefulSymbolicContext):
|
|||
self.inner_contexts = {}
|
||||
|
||||
|
||||
# Tracks the sources of all fake tensors we wrap in Dynamo.
|
||||
# Used by shape guard computation.
|
||||
@dataclass
|
||||
class TrackedFake:
|
||||
"""
|
||||
Tracks the sources of all fake tensors we wrap in Dynamo.
|
||||
Used by shape guard computation.
|
||||
"""
|
||||
|
||||
fake: Union[FakeTensor, SymInt]
|
||||
source: Source
|
||||
symbolic_context: Optional[SymbolicContext]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user