MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / test_convert_to_onnx

Function test_convert_to_onnx

tools/tensorflow-quantization/tests/utils_test.py:70–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def test_convert_to_onnx():
71 test_assets.add_folder("test_convert_to_onnx")
72
73 model = sam_32_32()
74 q_model = quantize_model(model)
75 # Create experiment specific directory
76 tf.keras.models.save_model(
77 q_model, test_assets.test_convert_to_onnx.int8_saved_model
78 )
79 convert_saved_model_to_onnx(
80 saved_model_dir=test_assets.test_convert_to_onnx.int8_saved_model,
81 onnx_model_path=test_assets.test_convert_to_onnx.int8_onnx_model,
82 )
83 tf.keras.backend.clear_session()
84
85
86def test_find_my_predecessors():

Callers

nothing calls this directly

Calls 5

sam_32_32Function · 0.90
quantize_modelFunction · 0.90
add_folderMethod · 0.80
save_modelMethod · 0.80

Tested by

no test coverage detected