File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1077,14 +1077,15 @@ def forward(self) -> torch.Tensor:
1077
1077
FileCheck ().check ("_lifted_tensor_constant1" ).check (
1078
1078
"b_a" # followed by the buffer input.
1079
1079
).run (ep .graph_module .code )
1080
+
1080
1081
# the graph signature should also be the same:
1081
- assert ep .graph_signature .input_specs [0 ].arg .name == "_lifted_tensor_constant1"
1082
- assert ep .graph_signature .input_specs [1 ].arg .name == "b_a"
1082
+ self .assertEqual (
1083
+ ep .graph_signature .input_specs [0 ].arg .name , "_lifted_tensor_constant1"
1084
+ )
1085
+ self .assertEqual (ep .graph_signature .input_specs [1 ].arg .name , "b_a" )
1083
1086
1084
- executorch_program = edge .to_executorch ()
1085
- # # the graph signature should also be the same:
1086
- # executorch_program.graph_signature.input_specs[0].arg.name == "_lifted_tensor_constant1"
1087
- # executorch_program.graph_signature.input_specs[1].arg.name == "b_a"
1087
+ # Validate that the program successfully passes validation to executorch:
1088
+ edge .to_executorch ()
1088
1089
1089
1090
def test_constant_prop_pass_for_parameter (self ) -> None :
1090
1091
def count_additions (gm : torch .fx .GraphModule ) -> int :
You can’t perform that action at this time.
0 commit comments