{"id":"compute.graph--graphFallbackPolicy","name":"graphFallbackPolicy","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing graphFallbackPolicy","description":"A graph fallback policy record carrying primaryPath, fallbackPath, reason, exactShapeRequired, cacheInvalidatedOnFallback, and related state.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"primaryPath","kind":"field","type":"text","description":"Stores primary path as text.","signature":"text primaryPath","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"fallbackPath","kind":"field","type":"text","description":"Stores fallback path as text.","signature":"text fallbackPath","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"reason","kind":"field","type":"text","description":"Stores reason as text.","signature":"text reason","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"exactShapeRequired","kind":"field","type":"bool","description":"Stores exact shape required as bool.","signature":"bool exactShapeRequired","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"cacheInvalidatedOnFallback","kind":"field","type":"bool","description":"Stores cache invalidated on fallback as bool.","signature":"bool cacheInvalidatedOnFallback","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":"graphFallbackPolicy","kind":"constructor","parameters":[{"name":"primaryPath","type":"text","description":"Primary path."},{"name":"fallbackPath","type":"text","description":"Fallback path."},{"name":"reason","type":"text","description":"Reason."},{"name":"exactShapeRequired","type":"bool","description":"Exact shape required."},{"name":"cacheInvalidatedOnFallback","type":"bool","description":"Cache invalidated on fallback."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"graphFallbackPolicy(text primaryPath, text fallbackPath, text reason, bool exactShapeRequired, bool cacheInvalidatedOnFallback, text note)","description":"Graph fallback policy.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"HasFallback","kind":"method","parameters":[],"returns":"bool","signature":"HasFallback() returns bool","description":"Has fallback.","tags":["thing","method","compute.graph"],"exampleId":"method-HasFallback-7","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-8","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/graph.yh","line":159,"sha256":"95bb29f53014a420ab0b1dfc18800f567a8e06f197650f133522eb254009014f"},"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 graphFallbackPolicy","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.\ngraphFallbackPolicy sample = graphFallbackPolicy(\"primary Path\", \"fallback Path\", \"reason\", true, true, \"note\")\nConsole.Log(Text.From(sample.primaryPath))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphfallbackpolicy\"\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":"e85db3c898ff78079de4cc691f3a4e61708b6795a84358919af00b4efaa6f6e7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasFallback-7","title":"graphFallbackPolicy.HasFallback","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Has fallback.\ngraphFallbackPolicy instance = graphFallbackPolicy(\"primary Path\", \"fallback Path\", \"reason\", true, true, \"note\")\nbool result = instance.HasFallback()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphfallbackpolicy\"\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":"590fea4a3fb86e69d7ebe923183ad9f0a04fd69d02d17e3a01ab9785e2569a16","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"graphFallbackPolicy.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.\ngraphFallbackPolicy instance = graphFallbackPolicy(\"primary Path\", \"fallback Path\", \"reason\", true, true, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphfallbackpolicy\"\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":"20af2bb404146d00ff6c49c786fe07b3004674283d1f829ac8309cbfeaae4199","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["primaryPath","fallbackPath","reason","exactShapeRequired","cacheInvalidatedOnFallback","note","graphFallbackPolicy","HasFallback","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--graphFallbackPolicy","json":"https://demonhunterlabs.com/reference/items/compute.graph--graphFallbackPolicy.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--graphFallbackPolicy.md"}
