ModelInfo

data class ModelInfo(val format: ModelFormat, val version: String? = null, val producer: String? = null, val domain: String? = null, val irVersion: Long? = null, val additionalMetadata: Map<String, Any> = emptyMap())(source)

General model information extracted from model files.

Constructors

Link copied to clipboard
constructor(format: ModelFormat, version: String? = null, producer: String? = null, domain: String? = null, irVersion: Long? = null, additionalMetadata: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

Format-specific metadata as key-value pairs

Link copied to clipboard

Model domain or architecture type

Link copied to clipboard

Get the error message if present.

Link copied to clipboard

The model format (ONNX, GGUF, etc.)

Link copied to clipboard

Check if this model info contains an error.

Link copied to clipboard

IR version (primarily for ONNX)

Link copied to clipboard

Producer/creator of the model

Link copied to clipboard

Version string from the model file