Skip to content

Commit 3609c72

Browse files
JacobSzwejbkafacebook-github-bot
authored andcommitted
Add copy_ to aten op lib. (#2202)
Summary: Pull Request resolved: #2202 title bypass-github-export-checks neither failure in oss looks related to this diff so skipping Reviewed By: lucylq Differential Revision: D54432221 fbshipit-source-id: 0bff99ecaa6c7c2e403166e3b338cef157830b0d
1 parent dc77c85 commit 3609c72

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

exir/passes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def callWithLoggerEnabled(self, graph_module: torch.fx.GraphModule) -> None:
249249
# it's retraced after running to_out_variant with the first trace.
250250
memory.alloc,
251251
executorch_call_delegate,
252+
torch.ops.aten.copy_.default,
252253
}
253254
to_out_var_skiplist.update(_EXECUTORCH_SYM_OPS)
254255

kernels/aten/functions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
- op: _softmax.out
1717

18+
- op: copy_
19+
1820
- op: _to_copy.out
1921

2022
- op: _unique2.out

0 commit comments

Comments
 (0)