{"id":"compute.kernels--BuildQuantizedModelBlock","name":"BuildQuantizedModelBlock","owner":"yeho","package":"compute.kernels","kind":"function","signature":"external BuildQuantizedModelBlock(text name, tensorBuffer source, quantizedBlockSpec spec, text requestedBackend) returns quantizedModelBlock","description":"Build quantized model block.","context":"Describe reusable compute kernels and their workload contracts.","parameters":[{"name":"name","type":"text","description":"Supply name as text."},{"name":"source","type":"tensorBuffer","description":"Supply source as tensorBuffer."},{"name":"spec","type":"quantizedBlockSpec","description":"Supply spec as quantizedBlockSpec."},{"name":"requestedBackend","type":"text","description":"Supply requested backend as text."}],"returns":"quantizedModelBlock","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":1061,"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 BuildQuantizedModelBlock","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.\ntext name = \"Nova\"\ntensorBuffer source = tensorBuffer(\"Player health\", tensorShape(\"element Type\", []), \"device\")\nquantizedBlockSpec spec = quantizedBlockSpec(\"Nova\", quantizedPathSpec(), 1, true, \"note\")\ntext requestedBackend = \"requested Backend\"\nquantizedModelBlock result = BuildQuantizedModelBlock(name, source, spec, requestedBackend)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_kernels__buildquantizedmodelblock\"\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":"0599bbca8293a08445e488b50f41b5be8e499ed8f2ca6d0942881147588127c4","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.kernels--BuildQuantizedModelBlock","json":"https://demonhunterlabs.com/reference/items/compute.kernels--BuildQuantizedModelBlock.json","markdown":"https://demonhunterlabs.com/reference/text/compute.kernels--BuildQuantizedModelBlock.md"}
