package kaun
Module Kaun.Checkpoint
module Snapshot : sig ... endGeneric tree structure capable of storing heterogeneous tensors and scalar metadata.
type manifest = {version : int;step : int option;created_at : float;metadata : (string * string) list;artifacts : artifact_descriptor list;
}val error_to_string : error -> stringval artifact :
?label:string ->
kind:artifact_kind ->
snapshot:Snapshot.t ->
unit ->
artifactval artifact_kind : artifact -> artifact_kindval artifact_label : artifact -> stringval artifact_slug : artifact -> stringval artifact_snapshot : artifact -> Snapshot.tval create_repository :
directory:string ->
?retention:retention ->
unit ->
repositoryval read : repository -> step:int -> (manifest * artifact list, error) resultval read_latest : repository -> (manifest * artifact list, error) resultval steps : repository -> int listval latest_step : repository -> int optionval mem : repository -> step:int -> boolval delete : repository -> step:int -> (unit, error) resultval filter_artifacts :
?kinds:artifact_kind list ->
artifact list ->
artifact listval read_artifact_snapshot :
repository ->
step:int ->
slug:string ->
(Snapshot.t, error) resultval save_snapshot_file :
path:string ->
snapshot:Snapshot.t ->
(unit, error) resultval load_snapshot_file : path:string -> (Snapshot.t, error) resultval write_snapshot_file_with :
path:string ->
encode:(unit -> Snapshot.t) ->
(unit, error) resultval load_snapshot_file_with :
path:string ->
decode:(Snapshot.t -> ('a, string) result) ->
('a, error) result