{"id":"compute.kernels--TensorAttentionScoresIntBuffers","name":"TensorAttentionScoresIntBuffers","owner":"yeho","package":"compute.kernels","kind":"function","signature":"external TensorAttentionScoresIntBuffers(tensorBuffer query, tensorBuffer key) returns tensorBuffer","description":"Tensor attention scores int buffers.","context":"Describe reusable compute kernels and their workload contracts.","parameters":[{"name":"query","type":"tensorBuffer","description":"Supply query as tensorBuffer."},{"name":"key","type":"tensorBuffer","description":"Supply key as tensorBuffer."}],"returns":"tensorBuffer","members":[],"tags":["compute","compute.kernels","cpu","function","kernels","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/kernels/kernels.yh","line":911,"sha256":"eb4444b87d310bd2ce773d7a2b3595d3aabcb11b9e26ad50c690dcfc9161ba24"},"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 TensorAttentionScoresIntBuffers","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.kernels\n\n// Describe reusable compute kernels and their workload contracts.\ntensorBuffer query = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntensorBuffer key = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\ntensorBuffer result = TensorAttentionScoresIntBuffers(query, key)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_kernels__tensorattentionscoresintbuffers\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\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":"9226cb66fc434d0986abc3a080a66921e4949f7181597a7cef06a99681846d44","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.kernels--TensorAttentionScoresIntBuffers","json":"https://demonhunterlabs.com/reference/items/compute.kernels--TensorAttentionScoresIntBuffers.json","markdown":"https://demonhunterlabs.com/reference/text/compute.kernels--TensorAttentionScoresIntBuffers.md"}
