{"id":"compute.device--devicePlacementPlan","name":"devicePlacementPlan","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing devicePlacementPlan","description":"A device placement plan record carrying workload, requestedBackend, resolvedBackend, resolvedFamily, fallbackUsed, and related state.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[],"returns":"void","members":[{"name":"workload","kind":"field","type":"text","description":"Stores workload as text.","signature":"text workload","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"requestedBackend","kind":"field","type":"text","description":"Stores requested backend as text.","signature":"text requestedBackend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"resolvedBackend","kind":"field","type":"text","description":"Stores resolved backend as text.","signature":"text resolvedBackend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"resolvedFamily","kind":"field","type":"text","description":"Stores resolved family as text.","signature":"text resolvedFamily","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"fallbackUsed","kind":"field","type":"bool","description":"Stores fallback used as bool.","signature":"bool fallbackUsed","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"reason","kind":"field","type":"text","description":"Stores reason as text.","signature":"text reason","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"notes","kind":"field","type":"text","description":"Stores notes as text.","signature":"text notes","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"devicePlacementPlan","kind":"constructor","parameters":[{"name":"workload","type":"text","description":"Workload."},{"name":"requestedBackend","type":"text","description":"Requested backend."},{"name":"resolvedBackend","type":"text","description":"Resolved backend."},{"name":"resolvedFamily","type":"text","description":"Resolved family."},{"name":"fallbackUsed","type":"bool","description":"Fallback used."},{"name":"reason","type":"text","description":"Reason."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"devicePlacementPlan(text workload, text requestedBackend, text resolvedBackend, text resolvedFamily, bool fallbackUsed, text reason, text notes)","description":"Device placement plan.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"UseFallback","kind":"method","parameters":[{"name":"resolvedBackend","type":"text","description":"Resolved backend."},{"name":"resolvedFamily","type":"text","description":"Resolved family."},{"name":"reason","type":"text","description":"Reason."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"UseFallback(text resolvedBackend, text resolvedFamily, text reason, text notes)","description":"Use fallback.","tags":["thing","method","compute.device"],"exampleId":"method-UseFallback-8","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.device"],"exampleId":"method-Describe-9","updated":"2026-09-09"}],"tags":["compute","compute.device","cpu","device","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/device/device.yh","line":108,"sha256":"d567cec5c410960532c93c94cdb489280cbff52cec7785f98104cb8cd3ee181c"},"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 devicePlacementPlan","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.device\n\n// Inspect device capability catalogs and model resource lifetimes and placement decisions.\ndevicePlacementPlan sample = devicePlacementPlan(\"workload\", \"requested Backend\", \"resolved Backend\", \"resolved Family\", true, \"reason\", \"notes\")\nConsole.Log(Text.From(sample.workload))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__deviceplacementplan\"\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.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":"11b5e7cfb7017f9367eac2f877795b3571c939433e2751dab41a259829ccf6ce","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-UseFallback-8","title":"devicePlacementPlan.UseFallback","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Use fallback.\ndevicePlacementPlan instance = devicePlacementPlan(\"workload\", \"requested Backend\", \"resolved Backend\", \"resolved Family\", true, \"reason\", \"notes\")\ntext argument_resolvedBackend = \"argument resolved Backend\"\ntext argument_resolvedFamily = \"argument resolved Family\"\ntext argument_reason = \"argument reason\"\ntext argument_notes = \"argument notes\"\ninstance.UseFallback(argument_resolvedBackend, argument_resolvedFamily, argument_reason, argument_notes)\nConsole.Log(\"UseFallback completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__deviceplacementplan\"\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.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":"35e57ccc42a5ce43a94cf8e575ece6a8f2ea6764b9f0683f35e1bbd14f1a6b73","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-9","title":"devicePlacementPlan.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Describe.\ndevicePlacementPlan instance = devicePlacementPlan(\"workload\", \"requested Backend\", \"resolved Backend\", \"resolved Family\", true, \"reason\", \"notes\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__deviceplacementplan\"\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.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":"fbf49bef426ba91922dcf4ca8564b7a699a6950eb196be22d630fac57b3ef7ba","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["workload","requestedBackend","resolvedBackend","resolvedFamily","fallbackUsed","reason","notes","devicePlacementPlan","UseFallback","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--devicePlacementPlan","json":"https://demonhunterlabs.com/reference/items/compute.device--devicePlacementPlan.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--devicePlacementPlan.md"}
