@@ -1026,7 +1026,7 @@ def test_constant_cast_folding(model_with_constant_cast_patterns, low_precision_
1026
1026
1027
1027
1028
1028
@pytest .fixture
1029
- def model_with_casted_output ():
1029
+ def model_with_casted_input_to_output ():
1030
1030
"""Create a model with an output produced by a Cast node."""
1031
1031
# Create input and outputs
1032
1032
x = helper .make_tensor_value_info ("X" , TensorProto .FLOAT , [2 , 3 ])
@@ -1067,14 +1067,13 @@ def model_with_casted_output():
1067
1067
1068
1068
model = onnx_utils .infer_shapes (model )
1069
1069
value_info_map , initializer_map , node_to_init_map = utils .setup_mappings (model )
1070
- onnx .save (model , "/tmp/model_with_casted_output.onnx" )
1071
1070
1072
1071
return model , value_info_map , initializer_map , node_to_init_map
1073
1072
1074
1073
1075
1074
@pytest .mark .parametrize ("low_precision_type" , ["fp16" , "bf16" ])
1076
- def test_casted_output_model ( model_with_casted_output , low_precision_type ):
1077
- model , value_info_map , initializer_map , node_to_init_map = model_with_casted_output
1075
+ def test_casted_input_to_output_model ( model_with_casted_input_to_output , low_precision_type ):
1076
+ model , value_info_map , initializer_map , node_to_init_map = model_with_casted_input_to_output
1078
1077
1079
1078
converter = PrecisionConverter (
1080
1079
model ,
0 commit comments