Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions torch/_dynamo/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,7 @@ def add_code(self, code: types.CodeType) -> None:


@dataclasses.dataclass
class DynamoCaptureOutput:
"""
Core information generated from Dynamo for fullgraph=True.
"""

guarded_codes: list[_GuardedCodeCacheEntry]
backend_ids: list[_BackendId]


@dataclasses.dataclass
class _DynamoCodeCacheEntry(DynamoCaptureOutput):
class _DynamoCodeCacheEntry:
"""
Contains the serializable information associated with a single code object
in dynamo. To restore an execution of compiled code, we will need the following
Expand All @@ -172,7 +162,9 @@ class _DynamoCodeCacheEntry(DynamoCaptureOutput):
python_code: SerializedCode
python_module: str
function_names: list[_FunctionId]
guarded_codes: list[_GuardedCodeCacheEntry]
import_sources: dict[str, str]
backend_ids: list[_BackendId]
code_source: Optional[str]
install_to_global: bool
has_compile_id: bool = False
Expand Down
Loading