{"id":"compute.kernels--MakeAffineQuantizedSpec","name":"MakeAffineQuantizedSpec","owner":"yeho","package":"compute.kernels","kind":"function","signature":"external MakeAffineQuantizedSpec(text name, int scaleNumerator, int scaleDenominator, int zeroPoint, int minimumCode, int maximumCode, text note) returns quantizedPathSpec","description":"Make affine quantized spec.","context":"Describe reusable compute kernels and their workload contracts.","parameters":[{"name":"name","type":"text","description":"Supply name as text."},{"name":"scaleNumerator","type":"int","description":"Supply scale numerator as int."},{"name":"scaleDenominator","type":"int","description":"Supply scale denominator as int."},{"name":"zeroPoint","type":"int","description":"Supply zero point as int."},{"name":"minimumCode","type":"int","description":"Supply minimum code as int."},{"name":"maximumCode","type":"int","description":"Supply maximum code as int."},{"name":"note","type":"text","description":"Supply note as text."}],"returns":"quantizedPathSpec","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":239,"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 MakeAffineQuantizedSpec","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\"\nint scaleNumerator = 1\nint scaleDenominator = 1\nint zeroPoint = 1\nint minimumCode = 1\nint maximumCode = 1\ntext note = \"note\"\nquantizedPathSpec result = MakeAffineQuantizedSpec(name, scaleNumerator, scaleDenominator, zeroPoint, minimumCode, maximumCode, note)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_kernels__makeaffinequantizedspec\"\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":"2461473b076feedd69c61bfe1880ba3414da82b25a030f67819b9542fbe2a5fb","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.kernels--MakeAffineQuantizedSpec","json":"https://demonhunterlabs.com/reference/items/compute.kernels--MakeAffineQuantizedSpec.json","markdown":"https://demonhunterlabs.com/reference/text/compute.kernels--MakeAffineQuantizedSpec.md"}
