Skip to content

Commit

Permalink
[export] Remove CallSpec (pytorch#117671)
Browse files Browse the repository at this point in the history
Summary:

X-link: pytorch/executorch#1618

This is not really being used anywhere

Test Plan: CI

Differential Revision: D52842563
  • Loading branch information
angelayi authored and facebook-github-bot committed Jan 17, 2024
1 parent e94b79f commit c4ecf23
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions torch/_export/exported_program.py
@@ -1,11 +1,8 @@
import dataclasses
from typing import Optional
import warnings


import torch
import torch.fx
import torch.utils._pytree as pytree


# TODO(ycao): This is added to avoid breaking existing code temporarily.
Expand All @@ -32,13 +29,6 @@
]


# Information to maintain user calling/returning specs
@dataclasses.dataclass
class CallSpec:
in_spec: Optional[pytree.TreeSpec]
out_spec: Optional[pytree.TreeSpec]


def _create_graph_module_for_export(root, graph):
try:
gm = torch.fx.GraphModule(root, graph)
Expand Down

0 comments on commit c4ecf23

Please sign in to comment.