Documentation
¶
Overview ¶
Package convert wraps external model conversion tools (optimum-cli, coremltools) as subprocess calls. CKV does not implement conversion logic itself — it delegates to well-tested Python tools.
Supported conversions:
- PyTorch/SafeTensors → ONNX (via HuggingFace optimum-cli)
- ONNX → CoreML .mlpackage (via Apple coremltools)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFormat ¶
DetectFormat inspects a model directory and returns which formats are available.
func ToCoreML ¶
ToCoreML converts an ONNX model to CoreML .mlpackage format using coremltools. inputPath is the path to model.onnx. outputPath is the destination .mlpackage directory.
Requires: pip install coremltools
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.