Module Modelkit.Conversion_report

Numeric payload allocation performed by one adapter conversion.

Byte counts exclude OCaml headers, allocator metadata, names, and the adapter result record. temporary_payload_bytes counts full-size staging payloads discarded after admission; retained_payload_bytes counts the immutable payload retained by ModelKit.

type t
val create : source:string -> source_dtype:string -> source_shape:int array -> source_contiguous:bool option -> temporary_payload_bytes:int64 -> retained_payload_bytes:int64 -> (t, Error.t) result
val source : t -> string
val source_dtype : t -> string
val source_shape : t -> int array
val source_contiguous : t -> bool option
val temporary_payload_bytes : t -> int64
val retained_payload_bytes : t -> int64
val allocated_payload_bytes : t -> int64