Skip to content

Commit 9363b09

Browse files
committed
cleanup
Signed-off-by: Ali Boubezari <[email protected]>
1 parent 01308d6 commit 9363b09

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/onnx/autocast/test_precisionconverter.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def test_constant_cast_folding(model_with_constant_cast_patterns, low_precision_
10261026

10271027

10281028
@pytest.fixture
1029-
def model_with_casted_output():
1029+
def model_with_casted_input_to_output():
10301030
"""Create a model with an output produced by a Cast node."""
10311031
# Create input and outputs
10321032
x = helper.make_tensor_value_info("X", TensorProto.FLOAT, [2, 3])
@@ -1067,14 +1067,13 @@ def model_with_casted_output():
10671067

10681068
model = onnx_utils.infer_shapes(model)
10691069
value_info_map, initializer_map, node_to_init_map = utils.setup_mappings(model)
1070-
onnx.save(model, "/tmp/model_with_casted_output.onnx")
10711070

10721071
return model, value_info_map, initializer_map, node_to_init_map
10731072

10741073

10751074
@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
10781077

10791078
converter = PrecisionConverter(
10801079
model,

0 commit comments

Comments
 (0)