File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
backends/apple/coreml/partition Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,30 @@ def should_override_support(self, node) -> bool:
8989 )
9090 return True
9191
92+ # https://github.com/apple/coremltools/issues/2565
93+ if node .target in [
94+ torch .ops .aten .diagonal .default ,
95+ torch .ops .aten .diagonal_copy .default ,
96+ exir_ops .edge .aten .diagonal .default ,
97+ exir_ops .edge .aten .diagonal_copy .default ,
98+ ]:
99+ self .log_once (
100+ "torch.ops.aten.diagonal.default has a bug in CoreML. Overriding op support."
101+ )
102+ return True
103+
104+ # https://github.com/apple/coremltools/issues/2569
105+ if node .target in [
106+ torch .ops .aten .acosh .default ,
107+ exir_ops .edge .aten .acosh .default ,
108+ torch .ops .aten .asinh .default ,
109+ exir_ops .edge .aten .asinh .default ,
110+ ]:
111+ self .log_once (
112+ "torch.ops.aten.{acosh, asinh}.default is not supported by CoreML. Overriding op support."
113+ )
114+ return True
115+
92116 # TODO: enable this after bugs in ExecuTorch's partitioner are fixed
93117 # # If lower_full_graph=False, do not partition nodes with symbolic args because it can result in symbolic args
94118 # # in the placeholders due to partitioning, which CoreML does not support
You can’t perform that action at this time.
0 commit comments