{"id":"compute.graph--graphCheckpointPolicy","name":"graphCheckpointPolicy","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing graphCheckpointPolicy","description":"A graph checkpoint policy record carrying key, format, location, includeModelState, includeOptimizerState, and related state.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"key","kind":"field","type":"text","description":"Stores key as text.","signature":"text key","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"format","kind":"field","type":"text","description":"Stores format as text.","signature":"text format","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"location","kind":"field","type":"text","description":"Stores location as text.","signature":"text location","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"includeModelState","kind":"field","type":"bool","description":"Stores include model state as bool.","signature":"bool includeModelState","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"includeOptimizerState","kind":"field","type":"bool","description":"Stores include optimizer state as bool.","signature":"bool includeOptimizerState","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"includeRngState","kind":"field","type":"bool","description":"Stores include rng state as bool.","signature":"bool includeRngState","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"keepLatestCount","kind":"field","type":"int","description":"Stores keep latest count as int.","signature":"int keepLatestCount","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"note","kind":"field","type":"text","description":"Stores note as text.","signature":"text note","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"graphCheckpointPolicy","kind":"constructor","parameters":[{"name":"key","type":"text","description":"Key."},{"name":"format","type":"text","description":"Format."},{"name":"location","type":"text","description":"Location."},{"name":"includeModelState","type":"bool","description":"Include model state."},{"name":"includeOptimizerState","type":"bool","description":"Include optimizer state."},{"name":"includeRngState","type":"bool","description":"Include rng state."},{"name":"keepLatestCount","type":"int","description":"Keep latest count."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"graphCheckpointPolicy(text key, text format, text location, bool includeModelState, bool includeOptimizerState, bool includeRngState, int keepLatestCount, text note)","description":"Graph checkpoint policy.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"CanResume","kind":"method","parameters":[],"returns":"bool","signature":"CanResume() returns bool","description":"Can resume.","tags":["thing","method","compute.graph"],"exampleId":"method-CanResume-9","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.graph"],"exampleId":"method-Describe-10","updated":"2026-09-09"}],"tags":["compute","compute.graph","cpu","graph","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/training.yh","line":69,"sha256":"df3f352a0daeea888785284ad41be26df4c606c7ffe50b68ed7188f4fcee4410"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use graphCheckpointPolicy","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\ngraphCheckpointPolicy sample = graphCheckpointPolicy(\"key\", \"png\", \"location\", true, true, true, 1, \"note\")\nConsole.Log(Text.From(sample.key))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphcheckpointpolicy\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"0c130708e4cbea811ebc265161343879f9944dc3a1d6158f74c8c43d109843a7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-CanResume-9","title":"graphCheckpointPolicy.CanResume","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Can resume.\ngraphCheckpointPolicy instance = graphCheckpointPolicy(\"key\", \"png\", \"location\", true, true, true, 1, \"note\")\nbool result = instance.CanResume()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphcheckpointpolicy\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"ead3f58047e1b6b16dd602b67f1b5b635544cb7fd6c24f087a3d8d2b83d816b8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-10","title":"graphCheckpointPolicy.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Describe.\ngraphCheckpointPolicy instance = graphCheckpointPolicy(\"key\", \"png\", \"location\", true, true, true, 1, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphcheckpointpolicy\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"42939c8e63aa8b8f979b0e2bf555c0aaad95f33ad1fa844b0a6d83eee5f0fa91","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["key","format","location","includeModelState","includeOptimizerState","includeRngState","keepLatestCount","note","graphCheckpointPolicy","CanResume","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--graphCheckpointPolicy","json":"https://demonhunterlabs.com/reference/items/compute.graph--graphCheckpointPolicy.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--graphCheckpointPolicy.md"}
