Skip to content

Commit 1fe461f

Browse files
committed
Remove _clone_dim_order op registration (moved to PR #12974)
1 parent cff39c9 commit 1fe461f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

exir/passes/dim_order_ops_registry.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
"_empty_dim_order.out(int[] size, *, int[]? dim_order=None, Tensor(a!) out) -> Tensor(a!)"
2929
)
3030

31-
lib.define(
32-
"_clone_dim_order(Tensor self, *, bool non_blocking=False, int[]? dim_order=None) -> Tensor"
33-
)
34-
35-
lib.define(
36-
"_clone_dim_order.out(Tensor self, *, bool non_blocking=False, int[]? dim_order=None, Tensor(a!) out) -> Tensor(a!)"
37-
)
38-
3931

4032
def _op_impl(target, *args, **kwargs):
4133
kwargs["memory_format"] = get_memory_format(kwargs.get("dim_order", None))
@@ -65,16 +57,6 @@ def _empty_dim_order_out_impl(*args, **kwargs):
6557
return _op_impl(torch.ops.aten.empty.out, *args, **kwargs)
6658

6759

68-
@impl(lib, "_clone_dim_order", "CompositeImplicitAutograd")
69-
def _clone_dim_order_impl(*args, **kwargs):
70-
return _op_impl(torch.ops.aten.clone.default, *args, **kwargs)
71-
72-
73-
@impl(lib, "_clone_dim_order.out", "CompositeImplicitAutograd")
74-
def _clone_dim_order_out_impl(*args, **kwargs):
75-
return _op_impl(torch.ops.aten.clone.out, *args, **kwargs)
76-
77-
7860
"""
7961
Defines a map of edge ops to the corresponding dim_order ops for quick lookup
8062
"""

0 commit comments

Comments
 (0)