coreai_opt.CoreMLExportError

exception coreai_opt.CoreMLExportError(message)[source]

Bases: ValueError

Raised when a model cannot be exported to the CoreML backend.

Parameters:

message (str)

Return type:

None

classmethod from_config(config, context)[source]

Build the error for an unsupported quantization config attribute (e.g. granularity).

Parameters:
  • config (object)

  • context (str)

Return type:

CoreMLExportError

classmethod from_dtype(dtype, context)[source]

Build the error for an unsupported weight/activation/LUT dtype.

Parameters:
  • dtype (Any)

  • context (str)

Return type:

CoreMLExportError