{"id":"compute.tensor--TensorDeviceView","name":"TensorDeviceView","owner":"yeho","package":"compute.tensor","kind":"function","signature":"external TensorDeviceView(text label, tensorShape shape, text device) returns text","description":"Tensor device view.","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":"device","type":"text","description":"Supply device as text."}],"returns":"text","members":[],"tags":["compute","compute.tensor","cpu","function","source-example","tensor","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/tensor/tensor.yh","line":1344,"sha256":"7bd3db2f904b35af3226eb39a3981ea037898069e10ad7c6cb37913fd9f5171c"},"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 TensorDeviceView","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\", [])\ntext device = \"device\"\ntext result = TensorDeviceView(label, shape, device)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensordeviceview\"\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":"21a28f84bd673585a348ceb5d770bb02fddacbdc59b569f8678dd074b3c021b5","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--TensorDeviceView","json":"https://demonhunterlabs.com/reference/items/compute.tensor--TensorDeviceView.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--TensorDeviceView.md"}
