{"id":"compute.tensor--tensorView","name":"tensorView","owner":"yeho","package":"compute.tensor","kind":"thing","signature":"external thing tensorView","description":"A tensor view record carrying label, shape, placement, offset.","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":"offset","kind":"field","type":"int","description":"Stores offset as int.","signature":"int offset","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorView","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"shape","type":"tensorShape","description":"Shape."},{"name":"placement","type":"tensorPlacement","description":"Placement."}],"returns":"void","signature":"tensorView(text label, tensorShape shape, tensorPlacement placement)","description":"Tensor view.","tags":["thing","constructor","compute.tensor"],"updated":"2026-09-09"},{"name":"SetOffset","kind":"method","parameters":[{"name":"offset","type":"int","description":"Offset."}],"returns":"void","signature":"SetOffset(int offset)","description":"Set offset.","tags":["thing","method","compute.tensor"],"exampleId":"method-SetOffset-5","updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","compute.tensor"],"exampleId":"method-ValidationIssue-6","updated":"2026-09-09"},{"name":"Validate","kind":"method","parameters":[],"returns":"bool","signature":"Validate() returns bool","description":"Validate.","tags":["thing","method","compute.tensor"],"exampleId":"method-Validate-7","updated":"2026-09-09"},{"name":"ValidateOrThrow","kind":"method","parameters":[],"returns":"void","signature":"ValidateOrThrow()","description":"Validate or throw.","tags":["thing","method","compute.tensor"],"exampleId":"method-ValidateOrThrow-8","updated":"2026-09-09"},{"name":"Rank","kind":"method","parameters":[],"returns":"int","signature":"Rank() returns int","description":"Rank.","tags":["thing","method","compute.tensor"],"exampleId":"method-Rank-9","updated":"2026-09-09"},{"name":"ElementCount","kind":"method","parameters":[],"returns":"int","signature":"ElementCount() returns int","description":"Element count.","tags":["thing","method","compute.tensor"],"exampleId":"method-ElementCount-10","updated":"2026-09-09"},{"name":"IsContiguous","kind":"method","parameters":[],"returns":"bool","signature":"IsContiguous() returns bool","description":"Is contiguous.","tags":["thing","method","compute.tensor"],"exampleId":"method-IsContiguous-11","updated":"2026-09-09"},{"name":"SliceAxis","kind":"method","parameters":[{"name":"axis","type":"int","description":"Axis."},{"name":"start","type":"int","description":"Start."},{"name":"length","type":"int","description":"Length."}],"returns":"tensorView","signature":"SliceAxis(int axis, int start, int length) returns tensorView","description":"Slice axis.","tags":["thing","method","compute.tensor"],"exampleId":"method-SliceAxis-12","updated":"2026-09-09"},{"name":"Transpose","kind":"method","parameters":[{"name":"axisOrder","type":"list of int","description":"Axis order."}],"returns":"tensorView","signature":"Transpose(list of int axisOrder) returns tensorView","description":"Transpose.","tags":["thing","method","compute.tensor"],"exampleId":"method-Transpose-13","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-14","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.yh","line":253,"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 tensorView","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.\ntensorView sample = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"6dbd985f6996269bf4f97439951dd2e737a062af6105566634f419292024fb80","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SetOffset-5","title":"tensorView.SetOffset","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Set offset.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nint argument_offset = 1\ninstance.SetOffset(argument_offset)\nConsole.Log(\"SetOffset completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"648e1241624faebb95bac3f0f432aaf67f8fa0328f391c8296337111983cd72b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-6","title":"tensorView.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Validation issue.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"1cc00ebaf5cc13b560320843a975629015194c376aa96d42c89add0169bc19f0","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Validate-7","title":"tensorView.Validate","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Validate.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nbool result = instance.Validate()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"d016e1a3aa1d649c51a58d9735982fbc2d375b172bf01769f5b02d2610cf7a2f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidateOrThrow-8","title":"tensorView.ValidateOrThrow","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Validate or throw.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\ninstance.ValidateOrThrow()\nConsole.Log(\"ValidateOrThrow completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"9b1460b4a07e060ca31f0305d4acf0fc0117236d00fcc2d9a3697bc1aab1dfae","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Rank-9","title":"tensorView.Rank","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Rank.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nint result = instance.Rank()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"a2dfc4c68f5ae558ce2b1e60ec44e1b52361835675a2e81040ddb2a0fe07adc5","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ElementCount-10","title":"tensorView.ElementCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Element count.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nint result = instance.ElementCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"34bf48f9ec2c312a7aa314dc4f7a7864fd427a60e69250dede8e6f8b2066d43a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsContiguous-11","title":"tensorView.IsContiguous","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Is contiguous.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nbool result = instance.IsContiguous()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"56c36e2b85afad616f77b60e738cd9bbd590bade524af11ed67586311b52d6a3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SliceAxis-12","title":"tensorView.SliceAxis","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Slice axis.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nint argument_axis = 1\nint argument_start = 1\nint argument_length = 1\ntensorView result = instance.SliceAxis(argument_axis, argument_start, argument_length)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"0032e9e174ee743949e728677c8c3b4c3810492b44c01a93349bb9dfbc54b940","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Transpose-13","title":"tensorView.Transpose","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Transpose.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nlist of int argument_axisOrder = []\ntensorView result = instance.Transpose(argument_axisOrder)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"8bbaff12c0eb0ddfe7a691fe8e03ab26dab9b6fa1d19b2982c2046f49b401a73","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-14","title":"tensorView.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.\ntensorView instance = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorview\"\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":"87ac8962e7e210396f9c8d3357810627e51273148ef6fd0210b51c5b6098625f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","shape","placement","offset","tensorView","SetOffset","ValidationIssue","Validate","ValidateOrThrow","Rank","ElementCount","IsContiguous","SliceAxis","Transpose","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--tensorView","json":"https://demonhunterlabs.com/reference/items/compute.tensor--tensorView.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--tensorView.md"}
