Closed amkrajewski closed 1 year ago
TODO:
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
45202a4
) 92.20% compared to head (1cc47f2
) 93.22%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
So if the calculator is empty it is not an error?
Based on the current PR state, it does raise an AssertionError with the message 'No models loaded in calculator. Nothing to export.'
I will add tests to verify these errors occur as intended.
I added the aforementioned tests and documentation page on why-and-how to use Exporters.
modelExporters
module with 3 Exporter classes, allowing conversion and saving of the loaded models (including ones modified within pySIPFENN transfer learning runs) into ONNX, PyTorch, and CoreML formats.ONNXExporter
also allows for model conversion to FP16 precision, lowering the size by a factor of 2, as well as model simplification with the ONNX optimizer toolset.