{"id":"compute.device--deviceBackendContract","name":"deviceBackendContract","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing deviceBackendContract","description":"A device backend contract record carrying backend, family, tensorExecutionSupported, graphExecutionSupported, kernelExecutionSupported, and related state.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[],"returns":"void","members":[{"name":"backend","kind":"field","type":"text","description":"Stores backend as text.","signature":"text backend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"family","kind":"field","type":"text","description":"Stores family as text.","signature":"text family","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"tensorExecutionSupported","kind":"field","type":"bool","description":"Stores tensor execution supported as bool.","signature":"bool tensorExecutionSupported","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"graphExecutionSupported","kind":"field","type":"bool","description":"Stores graph execution supported as bool.","signature":"bool graphExecutionSupported","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"kernelExecutionSupported","kind":"field","type":"bool","description":"Stores kernel execution supported as bool.","signature":"bool kernelExecutionSupported","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":"deviceBackendContract","kind":"constructor","parameters":[{"name":"backend","type":"text","description":"Backend."},{"name":"family","type":"text","description":"Family."},{"name":"tensorExecutionSupported","type":"bool","description":"Tensor execution supported."},{"name":"graphExecutionSupported","type":"bool","description":"Graph execution supported."},{"name":"kernelExecutionSupported","type":"bool","description":"Kernel execution supported."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"deviceBackendContract(text backend, text family, bool tensorExecutionSupported, bool graphExecutionSupported, bool kernelExecutionSupported, text notes)","description":"Device backend contract.","tags":["thing","constructor","compute.device"],"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-7","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":144,"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 deviceBackendContract","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.\ndeviceBackendContract sample = deviceBackendContract(\"cpu-oracle\", \"cpu\", true, true, true, \"notes\")\nConsole.Log(Text.From(sample.backend))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcontract\"\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":"92e9af993afdcbf81c1a6807b96c7854d982fef598c5e7d766ec3d54a6d3f69b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"deviceBackendContract.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.\ndeviceBackendContract instance = deviceBackendContract(\"cpu-oracle\", \"cpu\", true, true, true, \"notes\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcontract\"\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":"6f01f4a87f6705f4b86431c63933b4eabb9a0a28c981c72905ad84ee5cf0f269","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["backend","family","tensorExecutionSupported","graphExecutionSupported","kernelExecutionSupported","notes","deviceBackendContract","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--deviceBackendContract","json":"https://demonhunterlabs.com/reference/items/compute.device--deviceBackendContract.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--deviceBackendContract.md"}
