{"id":"compute.tensor--tensorOwnershipContract","name":"tensorOwnershipContract","owner":"yeho","package":"compute.tensor","kind":"thing","signature":"external thing tensorOwnershipContract","description":"A tensor ownership contract record carrying kind, ownsStorage, isMutable, sharesIdentity, requiresLifetimeSource, and related state.","context":"Represent tensor shapes, layouts, and numerical storage contracts.","parameters":[],"returns":"void","members":[{"name":"kind","kind":"field","type":"text","description":"Stores kind as text.","signature":"text kind","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"ownsStorage","kind":"field","type":"bool","description":"Stores owns storage as bool.","signature":"bool ownsStorage","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"isMutable","kind":"field","type":"bool","description":"Stores is mutable as bool.","signature":"bool isMutable","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"sharesIdentity","kind":"field","type":"bool","description":"Stores shares identity as bool.","signature":"bool sharesIdentity","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"requiresLifetimeSource","kind":"field","type":"bool","description":"Stores requires lifetime source as bool.","signature":"bool requiresLifetimeSource","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"unsafeEscape","kind":"field","type":"bool","description":"Stores unsafe escape as bool.","signature":"bool unsafeEscape","tags":["thing","field","compute.tensor"],"updated":"2026-09-09"},{"name":"tensorOwnershipContract","kind":"constructor","parameters":[{"name":"kind","type":"text","description":"Kind."},{"name":"ownsStorage","type":"bool","description":"Owns storage."},{"name":"isMutable","type":"bool","description":"Is mutable."},{"name":"sharesIdentity","type":"bool","description":"Shares identity."},{"name":"requiresLifetimeSource","type":"bool","description":"Requires lifetime source."},{"name":"unsafeEscape","type":"bool","description":"Unsafe escape."}],"returns":"void","signature":"tensorOwnershipContract(text kind, bool ownsStorage, bool isMutable, bool sharesIdentity, bool requiresLifetimeSource, bool unsafeEscape)","description":"Tensor ownership 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-7","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":99,"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 tensorOwnershipContract","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.\ntensorOwnershipContract sample = tensorOwnershipContract(\"kind\", true, true, true, true, true)\nConsole.Log(Text.From(sample.kind))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorownershipcontract\"\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":"dcbb9992e0ec2d073ded35d3a8c13b252d5691d8f3d2df4578bee3776b0f5164","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"tensorOwnershipContract.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.\ntensorOwnershipContract instance = tensorOwnershipContract(\"kind\", true, true, true, true, true)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_tensor__tensorownershipcontract\"\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":"fcd0afca87dc56d4308d6f4c2dde7c5ae0245f973930c484d0bad076e999cba9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["kind","ownsStorage","isMutable","sharesIdentity","requiresLifetimeSource","unsafeEscape","tensorOwnershipContract","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.tensor--tensorOwnershipContract","json":"https://demonhunterlabs.com/reference/items/compute.tensor--tensorOwnershipContract.json","markdown":"https://demonhunterlabs.com/reference/text/compute.tensor--tensorOwnershipContract.md"}
