{"id":"compute.tensor--tensorBuffer","name":"tensorBuffer","owner":"yeho","package":"compute.tensor","kind":"thing","signature":"external thing tensorBuffer","description":"A tensor buffer record carrying label, shape, view, memory.","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":"view","kind":"field","type":"tensorView","description":"Stores view as tensorView.","signature":"tensorView view","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"memory","kind":"field","type":"tensorMemory","description":"Stores memory as tensorMemory.","signature":"tensorMemory memory","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorBuffer","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"shape","type":"tensorShape","description":"Shape."},{"name":"device","type":"text","description":"Device."}],"returns":"void","signature":"tensorBuffer(text label, tensorShape shape, text device)","description":"Tensor buffer.","tags":["thing","constructor","compute.tensor"],"updated":"2026-09-09"},{"name":"Load","kind":"method","parameters":[{"name":"values","type":"list of int","description":"Values."}],"returns":"void","signature":"Load(list of int values)","description":"Load.","tags":["thing","method","compute.tensor"],"exampleId":"method-Load-5","updated":"2026-09-09"},{"name":"Readback","kind":"method","parameters":[],"returns":"list of int","signature":"Readback() returns list of int","description":"Readback.","tags":["thing","method","compute.tensor"],"exampleId":"method-Readback-6","updated":"2026-09-09"},{"name":"ReadView","kind":"method","parameters":[{"name":"view","type":"tensorView","description":"View."}],"returns":"list of int","signature":"ReadView(tensorView view) returns list of int","description":"Read view.","tags":["thing","method","compute.tensor"],"exampleId":"method-ReadView-7","updated":"2026-09-09"},{"name":"Release","kind":"method","parameters":[],"returns":"list of int","signature":"Release() returns list of int","description":"Release.","tags":["thing","method","compute.tensor"],"exampleId":"method-Release-8","updated":"2026-09-09"},{"name":"ClearValues","kind":"method","parameters":[],"returns":"void","signature":"ClearValues()","description":"Clear values.","tags":["thing","method","compute.tensor"],"exampleId":"method-ClearValues-9","updated":"2026-09-09"},{"name":"MoveTo","kind":"method","parameters":[{"name":"device","type":"text","description":"Device."}],"returns":"void","signature":"MoveTo(text device)","description":"Move to.","tags":["thing","method","compute.tensor"],"exampleId":"method-MoveTo-10","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-11","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-12","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-13","updated":"2026-09-09"},{"name":"Pin","kind":"method","parameters":[],"returns":"void","signature":"Pin()","description":"Pin.","tags":["thing","method","compute.tensor"],"exampleId":"method-Pin-14","updated":"2026-09-09"},{"name":"Unpin","kind":"method","parameters":[],"returns":"void","signature":"Unpin()","description":"Unpin.","tags":["thing","method","compute.tensor"],"exampleId":"method-Unpin-15","updated":"2026-09-09"},{"name":"Share","kind":"method","parameters":[],"returns":"void","signature":"Share()","description":"Share.","tags":["thing","method","compute.tensor"],"exampleId":"method-Share-16","updated":"2026-09-09"},{"name":"Unshare","kind":"method","parameters":[],"returns":"void","signature":"Unshare()","description":"Unshare.","tags":["thing","method","compute.tensor"],"exampleId":"method-Unshare-17","updated":"2026-09-09"},{"name":"IsPinned","kind":"method","parameters":[],"returns":"bool","signature":"IsPinned() returns bool","description":"Is pinned.","tags":["thing","method","compute.tensor"],"exampleId":"method-IsPinned-18","updated":"2026-09-09"},{"name":"IsShared","kind":"method","parameters":[],"returns":"bool","signature":"IsShared() returns bool","description":"Is shared.","tags":["thing","method","compute.tensor"],"exampleId":"method-IsShared-19","updated":"2026-09-09"},{"name":"HasData","kind":"method","parameters":[],"returns":"bool","signature":"HasData() returns bool","description":"Has data.","tags":["thing","method","compute.tensor"],"exampleId":"method-HasData-20","updated":"2026-09-09"},{"name":"ByteSize","kind":"method","parameters":[],"returns":"int","signature":"ByteSize() returns int","description":"Byte size.","tags":["thing","method","compute.tensor"],"exampleId":"method-ByteSize-21","updated":"2026-09-09"},{"name":"ActiveLocation","kind":"method","parameters":[],"returns":"text","signature":"ActiveLocation() returns text","description":"Active location.","tags":["thing","method","compute.tensor"],"exampleId":"method-ActiveLocation-22","updated":"2026-09-09"},{"name":"TransferCount","kind":"method","parameters":[],"returns":"int","signature":"TransferCount() returns int","description":"Transfer count.","tags":["thing","method","compute.tensor"],"exampleId":"method-TransferCount-23","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-24","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-25","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-26","updated":"2026-09-09"},{"name":"Reshape","kind":"method","parameters":[{"name":"dimensions","type":"list of int","description":"Dimensions."}],"returns":"tensorBuffer","signature":"Reshape(list of int dimensions) returns tensorBuffer","description":"Reshape.","tags":["thing","method","compute.tensor"],"exampleId":"method-Reshape-27","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":"tensorBuffer","signature":"SliceAxis(int axis, int start, int length) returns tensorBuffer","description":"Slice axis.","tags":["thing","method","compute.tensor"],"exampleId":"method-SliceAxis-28","updated":"2026-09-09"},{"name":"Transpose","kind":"method","parameters":[{"name":"axisOrder","type":"list of int","description":"Axis order."}],"returns":"tensorBuffer","signature":"Transpose(list of int axisOrder) returns tensorBuffer","description":"Transpose.","tags":["thing","method","compute.tensor"],"exampleId":"method-Transpose-29","updated":"2026-09-09"},{"name":"Materialize","kind":"method","parameters":[],"returns":"tensorBuffer","signature":"Materialize() returns tensorBuffer","description":"Materialize.","tags":["thing","method","compute.tensor"],"exampleId":"method-Materialize-30","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-31","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":535,"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 tensorBuffer","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.\ntensorBuffer sample = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"a1cc169909c2401b7436e14af641e0abd5c603849394919fba40cb2ec8afb999","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Load-5","title":"tensorBuffer.Load","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Load.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nlist of int argument_values = []\ninstance.Load(argument_values)\nConsole.Log(\"Load completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"8e8f9fdaff119026148f53a9aefa695be753c41e8ce05ac1e50a541b85d385c7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Readback-6","title":"tensorBuffer.Readback","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Readback.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nlist of int result = instance.Readback()\nConsole.Log(Text.From(result.count))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"692c6a990ca8f36812a74b5df661d85ae5398511eb8184ef523467cb1377eec7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ReadView-7","title":"tensorBuffer.ReadView","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Read view.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntensorView argument_view = tensorView(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"))\nlist of int result = instance.ReadView(argument_view)\nConsole.Log(Text.From(result.count))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"09a087315f07a5adc2f16014336809f893250b7e8d0baf0ebd99981831dd1db8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Release-8","title":"tensorBuffer.Release","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Release.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nlist of int result = instance.Release()\nConsole.Log(Text.From(result.count))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"ddcc7f5846ea6d43ccc0439e689c5ab76109117e0da7d4ff39d6dcb6e3dba050","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ClearValues-9","title":"tensorBuffer.ClearValues","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Clear values.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.ClearValues()\nConsole.Log(\"ClearValues completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"6df613383d1e47cb60b00d0108bb8447a7303ae2f22d02aaf01095796556bf1b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-MoveTo-10","title":"tensorBuffer.MoveTo","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Move to.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntext argument_device = \"argument device\"\ninstance.MoveTo(argument_device)\nConsole.Log(\"MoveTo completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"65f7121f465c1edc7865a3fe5181baa1ce0d2f412b88366c81a8734a4edef3f6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-11","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"4b62b41362ee05afc1ba8815040bdf81ccab1bd5aa5799b249c4d81658a61f21","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Validate-12","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nbool result = instance.Validate()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"befb74252a50f3e8bbbb42a55b507b2fa934f7031af11abffaebfbee583e76ec","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidateOrThrow-13","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.ValidateOrThrow()\nConsole.Log(\"ValidateOrThrow completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"078f13015d1c84a9061580b1e31363412c69498519f0e01aa41a62ed4683236e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Pin-14","title":"tensorBuffer.Pin","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Pin.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.Pin()\nConsole.Log(\"Pin completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"48756b463c532c7d9590796259c6f603b158eb804f8e226305074db575a68b80","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Unpin-15","title":"tensorBuffer.Unpin","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Unpin.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.Unpin()\nConsole.Log(\"Unpin completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"8381fdeca937b99b168b8c0db91c25aa5d405cc098d7fc91431c9a0c5a1d01f2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Share-16","title":"tensorBuffer.Share","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Share.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.Share()\nConsole.Log(\"Share completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"9d3d25a6115b9d21c7b966c4be32c14bf48d75128cc71377b1158db586d7ed7a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Unshare-17","title":"tensorBuffer.Unshare","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Unshare.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ninstance.Unshare()\nConsole.Log(\"Unshare completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"2d2dbfde4ae3fc9dea0498e9d98c05442147af52b3a5d38f9dacb4fe1cc232c8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsPinned-18","title":"tensorBuffer.IsPinned","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 pinned.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nbool result = instance.IsPinned()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"ad57ea28c225d8a91778973c5b9e928c53ed88b5ca58aee49d21b5ab9b12c5e5","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsShared-19","title":"tensorBuffer.IsShared","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 shared.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nbool result = instance.IsShared()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"c4349659e36ac6a0301e08175a52f6eac51f042508f9df0de87434b23a281bcd","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasData-20","title":"tensorBuffer.HasData","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 data.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nbool result = instance.HasData()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"e9084ab4635b295448852d3571cf7ec2024da0fd384a12cad69d0bb655175382","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ByteSize-21","title":"tensorBuffer.ByteSize","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Byte size.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nint result = instance.ByteSize()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"da439e0b0aba67ddb763a368a76d6550732ce3dda395a97550c7e1f868be87d9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ActiveLocation-22","title":"tensorBuffer.ActiveLocation","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Active location.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntext result = instance.ActiveLocation()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"4b6488253be00e975d49d08158f5007eb88444f943778e385826d141f27d2642","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-TransferCount-23","title":"tensorBuffer.TransferCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Transfer count.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nint result = instance.TransferCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"ffaaa04f61853ccd09c5c791d517d87388842f0bf8f9a48426055eb0ff9b07a8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ElementCount-24","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nint result = instance.ElementCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"bbd4a7d38e8b0596facce996eca7adb0075d9461a38a05a5c18878b162d5a528","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Rank-25","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nint result = instance.Rank()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"5c706205dbb94f78f39fbcce01248e5a9369d2fc731434c38f020719a6081ad4","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsContiguous-26","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nbool result = instance.IsContiguous()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"6bde8dc314f100f2d61bf46e41ceed7035b5929e96b49850ab1cd04d582f4909","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Reshape-27","title":"tensorBuffer.Reshape","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Reshape.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nlist of int argument_dimensions = []\ntensorBuffer result = instance.Reshape(argument_dimensions)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"b68f50c12bcab3e7a4492263ce80bfb71ce79756c2e28a6ac29e23a6b2c94495","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SliceAxis-28","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nint argument_axis = 1\nint argument_start = 1\nint argument_length = 1\ntensorBuffer 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__tensorbuffer\"\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":"e263fd910350c01a0a3f7f52b834479a6d49d09d545bb9354d8a326cea5c5a64","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Transpose-29","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nlist of int argument_axisOrder = []\ntensorBuffer result = instance.Transpose(argument_axisOrder)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"c2f4f0c7418edb10dcba0495a9e09a8722a62fa6beac0d9592498e692c20edbe","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Materialize-30","title":"tensorBuffer.Materialize","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.tensor\n\n// Materialize.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntensorBuffer result = instance.Materialize()\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"82c51a5c6bb95a3e005de6a490d64c03d871f0909febd9645ed8467c8e2cd281","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-31","title":"tensorBuffer.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.\ntensorBuffer instance = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorbuffer\"\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":"a8114002cea0ea0bde1436a0063adf43257bd1c7b23a5a220fd57436c65cc8ae","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","shape","view","memory","tensorBuffer","Load","Readback","ReadView","Release","ClearValues","MoveTo","ValidationIssue","Validate","ValidateOrThrow","Pin","Unpin","Share","Unshare","IsPinned","IsShared","HasData","ByteSize","ActiveLocation","TransferCount","ElementCount","Rank","IsContiguous","Reshape","SliceAxis","Transpose","Materialize","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--tensorBuffer","json":"https://demonhunterlabs.com/reference/items/compute.tensor--tensorBuffer.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--tensorBuffer.md"}
