{"id":"compute.graph--portableGraphValue","name":"portableGraphValue","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing portableGraphValue","description":"A portable graph value record carrying name, dtype, dimensions, device, isMutable, and related state.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"name","kind":"field","type":"text","description":"Stores name as text.","signature":"text name","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"dtype","kind":"field","type":"text","description":"Stores dtype as text.","signature":"text dtype","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"dimensions","kind":"field","type":"list of int","description":"Stores dimensions as list of int.","signature":"list of int dimensions","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"device","kind":"field","type":"text","description":"Stores device as text.","signature":"text device","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"isMutable","kind":"field","type":"bool","description":"Stores is mutable as bool.","signature":"bool isMutable","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"producerNode","kind":"field","type":"text","description":"Stores producer node as text.","signature":"text producerNode","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"portableGraphValue","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"dtype","type":"text","description":"Dtype."},{"name":"dimensions","type":"list of int","description":"Dimensions."},{"name":"device","type":"text","description":"Device."},{"name":"isMutable","type":"bool","description":"Is mutable."},{"name":"producerNode","type":"text","description":"Producer node."}],"returns":"void","signature":"portableGraphValue(text name, text dtype, list of int dimensions, text device, bool isMutable, text producerNode)","description":"Portable graph value.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","compute.graph"],"exampleId":"method-ValidationIssue-7","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.graph"],"exampleId":"method-Describe-8","updated":"2026-09-09"}],"tags":["compute","compute.graph","cpu","graph","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/portable_contract.yh","line":39,"sha256":"7d368be12911192817194c8170d8f193f9b1b7d33e85834c9f44df101d82cf76"},"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 portableGraphValue","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\nportableGraphValue sample = portableGraphValue(\"Nova\", \"int\", [], \"device\", true, \"producer Node\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphvalue\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\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":"f82b4a58342c59a1bfbc6509c4b2cda9dfe4484be6db6876c57604f66d7ced3f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-7","title":"portableGraphValue.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Validation issue.\nportableGraphValue instance = portableGraphValue(\"Nova\", \"int\", [], \"device\", true, \"producer Node\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphvalue\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"0a398dcbced98f028404a3e4b9e0d7d5256b6e4cdd810585fa9ac86b792e9e98","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"portableGraphValue.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Describe.\nportableGraphValue instance = portableGraphValue(\"Nova\", \"int\", [], \"device\", true, \"producer Node\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphvalue\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"231945006a969fa5197967c3ca5b61cc7ea95bdbdce58d05898f9ce671a20944","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","dtype","dimensions","device","isMutable","producerNode","portableGraphValue","ValidationIssue","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--portableGraphValue","json":"https://demonhunterlabs.com/reference/items/compute.graph--portableGraphValue.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--portableGraphValue.md"}
