IModelExporter<T, TInput, TOutput>
Interfaces · AiDotNet.Deployment.Export
Base interface for model exporters that convert AiDotNet models to various deployment formats. Properly integrates with IFullModel architecture.
Known implementations: ModelExporterBase<T, TInput, TOutput>
Properties
| Property | Summary |
|---|---|
string ExportFormat { get; } |
Gets the target export format (e.g., “ONNX”, “TensorFlowLite”, “CoreML”, “TensorRT”) |
string FileExtension { get; } |
Gets the file extension for the exported model (e.g., “.onnx”, “.tflite”, “.mlmodel”) |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<string> GetValidationErrors(IFullModel<T, TInput, TOutput> model) |
Gets validation errors if the model cannot be exported. |
bool CanExport(IFullModel<T, TInput, TOutput> model) |
Validates that the model can be exported to this format. |
byte[] ExportToBytes(IFullModel<T, TInput, TOutput> model, ExportConfiguration config) |
Exports the model to a byte array with the given configuration. |
void Export(IFullModel<T, TInput, TOutput> model, string outputPath, ExportConfiguration config) |
Exports the model to the specified path with the given configuration. |