@@ -62,7 +62,7 @@ def forward(self, x):
6262
6363
6464@pytest .mark .parametrize ("use_pfto" , [False , True ])
65- @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview..Gradient type is missing:UserWarning" )
65+ @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview.training. .Gradient type is missing:UserWarning" )
6666@pytest .mark .filterwarnings ("ignore:Specified output_names .*:UserWarning" )
6767@pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
6868def test_grad (use_pfto : bool ):
@@ -103,6 +103,7 @@ def forward(self, x):
103103 )
104104
105105 actual_onnx = onnx .load (os .path .join (output_dir , 'model.onnx' ))
106+ print (actual_onnx )
106107 named_nodes = {n .name : n for n in actual_onnx .graph .node }
107108 if pytorch_pfn_extras .requires ("1.13" ) and not use_pfto :
108109 assert '/_ppe_as_out_module/conv/Conv' in named_nodes
@@ -136,7 +137,7 @@ def forward(self, x):
136137
137138
138139@pytest .mark .parametrize ("use_pfto" , [False , True ])
139- @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview..Gradient type is missing:UserWarning" )
140+ @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview.training. .Gradient type is missing:UserWarning" )
140141@pytest .mark .filterwarnings ("ignore:Specified output_names .*:UserWarning" )
141142@pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
142143def test_grad_multiple_times (use_pfto : bool ):
@@ -218,7 +219,7 @@ def forward(self, x):
218219
219220
220221@pytest .mark .parametrize ("use_pfto" , [False , True ])
221- @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview..Gradient type is missing:UserWarning" )
222+ @pytest .mark .filterwarnings ("ignore:The shape inference of ai.onnx.preview.training. .Gradient type is missing:UserWarning" )
222223@pytest .mark .filterwarnings ("ignore:Specified output_names .*:UserWarning" )
223224@pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
224225def test_grad_with_multiple_inputs (use_pfto : bool ):
0 commit comments