{"id":"compute.tensor--SerializeIntTensor","name":"SerializeIntTensor","owner":"yeho","package":"compute.tensor","kind":"function","signature":"external SerializeIntTensor(tensorBuffer buffer) returns tensorIntSerializationRecord","description":"Serialize int tensor.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[{"name":"buffer","type":"tensorBuffer","description":"Supply buffer as tensorBuffer."}],"returns":"tensorIntSerializationRecord","members":[],"tags":["compute","compute.tensor","cpu","function","source-example","tensor","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/tensor/contracts.yh","line":410,"sha256":"5a67a1f544b9f5c2e66fdef282f0c973bacbef39c00db661b449cd2c935edda7"},"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 SerializeIntTensor","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 buffer = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntensorIntSerializationRecord result = SerializeIntTensor(buffer)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__serializeinttensor\"\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":"2815059fe7ee74e8aeaba0b0354b4877b8a11e032bb068077e8b7ee151fd4fb1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--SerializeIntTensor","json":"https://demonhunterlabs.com/reference/items/compute.tensor--SerializeIntTensor.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--SerializeIntTensor.md"}
