{"id":"compute.graph--portableSchedulePolicy","name":"portableSchedulePolicy","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing portableSchedulePolicy","description":"A portable schedule policy record carrying mode, allowFusion, allowSpecialization, allowCache, allowFallback.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"mode","kind":"field","type":"text","description":"Stores mode as text.","signature":"text mode","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"allowFusion","kind":"field","type":"bool","description":"Stores allow fusion as bool.","signature":"bool allowFusion","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"allowSpecialization","kind":"field","type":"bool","description":"Stores allow specialization as bool.","signature":"bool allowSpecialization","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"allowCache","kind":"field","type":"bool","description":"Stores allow cache as bool.","signature":"bool allowCache","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"allowFallback","kind":"field","type":"bool","description":"Stores allow fallback as bool.","signature":"bool allowFallback","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"portableSchedulePolicy","kind":"constructor","parameters":[{"name":"mode","type":"text","description":"Mode."},{"name":"allowFusion","type":"bool","description":"Allow fusion."},{"name":"allowSpecialization","type":"bool","description":"Allow specialization."},{"name":"allowCache","type":"bool","description":"Allow cache."},{"name":"allowFallback","type":"bool","description":"Allow fallback."}],"returns":"void","signature":"portableSchedulePolicy(text mode, bool allowFusion, bool allowSpecialization, bool allowCache, bool allowFallback)","description":"Portable schedule policy.","tags":["thing","constructor","compute.graph"],"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-6","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/portable_contract.yh","line":166,"sha256":"7d368be12911192817194c8170d8f193f9b1b7d33e85834c9f44df101d82cf76"},"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 portableSchedulePolicy","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.\nportableSchedulePolicy sample = portableSchedulePolicy(\"mode\", true, true, true, true)\nConsole.Log(Text.From(sample.mode))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portableschedulepolicy\"\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":"96eff7c5fca8faa573ad4ddc29a66c153d7081d0cff5df77196a2024f3fa1c7d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-6","title":"portableSchedulePolicy.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.\nportableSchedulePolicy instance = portableSchedulePolicy(\"mode\", true, true, true, true)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portableschedulepolicy\"\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":"c8cb3497c1b48b7722bf3ea67df4cc04881b7b0c7ddc2123c92add04db60beb9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["mode","allowFusion","allowSpecialization","allowCache","allowFallback","portableSchedulePolicy","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--portableSchedulePolicy","json":"https://demonhunterlabs.com/reference/items/compute.graph--portableSchedulePolicy.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--portableSchedulePolicy.md"}
