{"id":"compute.tensor--tensorPlanHint","name":"tensorPlanHint","owner":"yeho","package":"compute.tensor","kind":"thing","signature":"external thing tensorPlanHint","description":"A tensor plan hint record carrying label, shape, placement, executionPath, fallbackPath, and related state.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[],"returns":"void","members":[{"name":"label","kind":"field","type":"text","description":"Stores label as text.","signature":"text label","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"shape","kind":"field","type":"tensorShape","description":"Stores shape as tensorShape.","signature":"tensorShape shape","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"placement","kind":"field","type":"tensorPlacement","description":"Stores placement as tensorPlacement.","signature":"tensorPlacement placement","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"executionPath","kind":"field","type":"text","description":"Stores execution path as text.","signature":"text executionPath","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"fallbackPath","kind":"field","type":"text","description":"Stores fallback path as text.","signature":"text fallbackPath","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"cacheKey","kind":"field","type":"text","description":"Stores cache key as text.","signature":"text cacheKey","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"cacheable","kind":"field","type":"bool","description":"Stores cacheable as bool.","signature":"bool cacheable","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"reusable","kind":"field","type":"bool","description":"Stores reusable as bool.","signature":"bool reusable","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"note","kind":"field","type":"text","description":"Stores note as text.","signature":"text note","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorPlanHint","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"shape","type":"tensorShape","description":"Shape."},{"name":"placement","type":"tensorPlacement","description":"Placement."},{"name":"executionPath","type":"text","description":"Execution path."},{"name":"fallbackPath","type":"text","description":"Fallback path."},{"name":"cacheKey","type":"text","description":"Cache key."},{"name":"cacheable","type":"bool","description":"Cacheable."},{"name":"reusable","type":"bool","description":"Reusable."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"tensorPlanHint(text label, tensorShape shape, tensorPlacement placement, text executionPath, text fallbackPath, text cacheKey, bool cacheable, bool reusable, text note)","description":"Tensor plan hint.","tags":["thing","constructor","compute.tensor"],"updated":"2026-09-09"},{"name":"HasFallback","kind":"method","parameters":[],"returns":"bool","signature":"HasFallback() returns bool","description":"Has fallback.","tags":["thing","method","compute.tensor"],"exampleId":"method-HasFallback-10","updated":"2026-09-09"},{"name":"CanReuse","kind":"method","parameters":[],"returns":"bool","signature":"CanReuse() returns bool","description":"Can reuse.","tags":["thing","method","compute.tensor"],"exampleId":"method-CanReuse-11","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.tensor"],"exampleId":"method-Describe-12","updated":"2026-09-09"}],"tags":["compute","compute.tensor","cpu","method","source-example","tensor","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/tensor/tensor_plan.yh","line":2,"sha256":"875719899eab402106d4d840e705bf1d52e721f335c1b89221ce0fb74ad3aa29"},"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 tensorPlanHint","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.tensor\n\n// Represent tensor shapes, layouts, and numerical storage contracts.\ntensorPlanHint sample = tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorplanhint\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\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":"36ff060a1e959204c42f1ebfb68e6d073d267faf336243a2c8d3ab08d4696d4d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasFallback-10","title":"tensorPlanHint.HasFallback","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Has fallback.\ntensorPlanHint instance = tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\")\nbool result = instance.HasFallback()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorplanhint\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\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":"e2a253833060f1139882fc45215d4bb2ff3f94aee0655943a87be52b1264ed9e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-CanReuse-11","title":"tensorPlanHint.CanReuse","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Can reuse.\ntensorPlanHint instance = tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\")\nbool result = instance.CanReuse()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorplanhint\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\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":"77545d2aa622b271b97f8ae460c5f7020af7c9a5e64cf0981aa1f9e6ef62436d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-12","title":"tensorPlanHint.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Describe.\ntensorPlanHint instance = tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorplanhint\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\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":"ee705e6df055abc430e4e60ccb4aa14472c13fab9f5359f7841939b5f353e6e6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","shape","placement","executionPath","fallbackPath","cacheKey","cacheable","reusable","note","tensorPlanHint","HasFallback","CanReuse","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--tensorPlanHint","json":"https://demonhunterlabs.com/reference/items/compute.tensor--tensorPlanHint.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--tensorPlanHint.md"}
