{"id":"compute.tensor--tensorDtypeContract","name":"tensorDtypeContract","owner":"yeho","package":"compute.tensor","kind":"thing","signature":"external thing tensorDtypeContract","description":"A tensor dtype contract record carrying name, canonicalName, family, bitWidth, storageBytes, and related state.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[],"returns":"void","members":[{"name":"name","kind":"field","type":"text","description":"Stores name as text.","signature":"text name","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"canonicalName","kind":"field","type":"text","description":"Stores canonical name as text.","signature":"text canonicalName","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"family","kind":"field","type":"text","description":"Stores family as text.","signature":"text family","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"bitWidth","kind":"field","type":"int","description":"Stores bit width as int.","signature":"int bitWidth","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"storageBytes","kind":"field","type":"int","description":"Stores storage bytes as int.","signature":"int storageBytes","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"isSigned","kind":"field","type":"bool","description":"Stores is signed as bool.","signature":"bool isSigned","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"scalarAdmitted","kind":"field","type":"bool","description":"Stores scalar admitted as bool.","signature":"bool scalarAdmitted","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorStorageAdmitted","kind":"field","type":"bool","description":"Stores tensor storage admitted as bool.","signature":"bool tensorStorageAdmitted","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"overflow","kind":"field","type":"text","description":"Stores overflow as text.","signature":"text overflow","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"nonFinite","kind":"field","type":"text","description":"Stores non finite as text.","signature":"text nonFinite","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorDtypeContract","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"canonicalName","type":"text","description":"Canonical name."},{"name":"family","type":"text","description":"Family."},{"name":"bitWidth","type":"int","description":"Bit width."},{"name":"storageBytes","type":"int","description":"Storage bytes."},{"name":"isSigned","type":"bool","description":"Is signed."},{"name":"scalarAdmitted","type":"bool","description":"Scalar admitted."},{"name":"tensorStorageAdmitted","type":"bool","description":"Tensor storage admitted."},{"name":"overflow","type":"text","description":"Overflow."},{"name":"nonFinite","type":"text","description":"Non finite."}],"returns":"void","signature":"tensorDtypeContract(text name, text canonicalName, text family, int bitWidth, int storageBytes, bool isSigned, bool scalarAdmitted, bool tensorStorageAdmitted, text overflow, text nonFinite)","description":"Tensor dtype contract.","tags":["thing","constructor","compute.tensor"],"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-11","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/contracts.yh","line":3,"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 tensorDtypeContract","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.\ntensorDtypeContract sample = tensorDtypeContract(\"Nova\", \"canonical Name\", \"cpu\", 1, 4, true, true, true, \"overflow\", \"non Finite\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensordtypecontract\"\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":"a3e01c6e81f1da829d87f16c4ca76a0fadfba484005d96731321d11588532292","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-11","title":"tensorDtypeContract.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.\ntensorDtypeContract instance = tensorDtypeContract(\"Nova\", \"canonical Name\", \"cpu\", 1, 4, true, true, true, \"overflow\", \"non Finite\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensordtypecontract\"\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":"cb5d85263d43fdc843289211ba911689a53955a3b999e67d8ee62635b5318255","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","canonicalName","family","bitWidth","storageBytes","isSigned","scalarAdmitted","tensorStorageAdmitted","overflow","nonFinite","tensorDtypeContract","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--tensorDtypeContract","json":"https://demonhunterlabs.com/reference/items/compute.tensor--tensorDtypeContract.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--tensorDtypeContract.md"}
