{"id":"compute.tensor--CreateTensorPlanHint","name":"CreateTensorPlanHint","owner":"yeho","package":"compute.tensor","kind":"function","signature":"external CreateTensorPlanHint(text label, tensorShape shape, tensorPlacement placement, text executionPath, text fallbackPath, text cacheKey, bool cacheable, bool reusable, text note) returns tensorPlanHint","description":"Create tensor plan hint from the supplied values.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[{"name":"label","type":"text","description":"Supply label as text."},{"name":"shape","type":"tensorShape","description":"Supply shape as tensorShape."},{"name":"placement","type":"tensorPlacement","description":"Supply placement as tensorPlacement."},{"name":"executionPath","type":"text","description":"Supply execution path as text."},{"name":"fallbackPath","type":"text","description":"Supply fallback path as text."},{"name":"cacheKey","type":"text","description":"Supply cache key as text."},{"name":"cacheable","type":"bool","description":"Supply cacheable as bool."},{"name":"reusable","type":"bool","description":"Supply reusable as bool."},{"name":"note","type":"text","description":"Supply note as text."}],"returns":"tensorPlanHint","members":[],"tags":["compute","compute.tensor","cpu","function","source-example","tensor","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/tensor/tensor_plan.yh","line":45,"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 CreateTensorPlanHint","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.\ntext label = \"Player health\"\ntensorShape shape = tensorShape(\"element Type\", [])\ntensorPlacement placement = tensorPlacement(\"device\", \"memory\")\ntext executionPath = \"execution Path\"\ntext fallbackPath = \"fallback Path\"\ntext cacheKey = \"cache Key\"\nbool cacheable = true\nbool reusable = true\ntext note = \"note\"\ntensorPlanHint result = CreateTensorPlanHint(label, shape, placement, executionPath, fallbackPath, cacheKey, cacheable, reusable, note)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__createtensorplanhint\"\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":"5c311751e5eb29b68670558aa5beb312d7621f64831da96585857f9f3349a27c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--CreateTensorPlanHint","json":"https://demonhunterlabs.com/reference/items/compute.tensor--CreateTensorPlanHint.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--CreateTensorPlanHint.md"}
