File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
backends/apple/coreml/test Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,23 @@ def test_vit_skip_conv(self):
68
68
)
69
69
)
70
70
71
+ conv_block = ["aten.convolution.default" , "executorch_call_delegate" ]
72
+ safe_softmax_block = [
73
+ "getitem" ,
74
+ "getitem" ,
75
+ "getitem" ,
76
+ "getitem" ,
77
+ "aten.any.dim" ,
78
+ "executorch_call_delegate" ,
79
+ ]
80
+ final_block = ["getitem" ]
81
+ total = conv_block + 12 * safe_softmax_block + final_block
82
+
71
83
assert [
72
84
node .target .__name__
73
85
for node in delegated_program_manager .exported_program ().graph .nodes
74
86
if node .op == "call_function"
75
- ] == [
76
- "aten.convolution.default" ,
77
- "executorch_call_delegate" ,
78
- "getitem" ,
79
- ]
80
-
87
+ ] == total
81
88
82
89
if __name__ == "__main__" :
83
90
test_runner = TestCoreMLPartitioner ()
You can’t perform that action at this time.
0 commit comments