{"id":"compute.graph--graphNode","name":"graphNode","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing graphNode","description":"A graph node record carrying name, operatorKind, tensorHint, fusionGroup, cacheable, 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":"operatorKind","kind":"field","type":"text","description":"Stores operator kind as text.","signature":"text operatorKind","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"tensorHint","kind":"field","type":"tensorPlanHint","description":"Stores tensor hint as tensorPlanHint.","signature":"tensorPlanHint tensorHint","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"fusionGroup","kind":"field","type":"text","description":"Stores fusion group as text.","signature":"text fusionGroup","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"cacheable","kind":"field","type":"bool","description":"Stores cacheable as bool.","signature":"bool cacheable","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"note","kind":"field","type":"text","description":"Stores note as text.","signature":"text note","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"graphNode","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"operatorKind","type":"text","description":"Operator kind."},{"name":"tensorHint","type":"tensorPlanHint","description":"Tensor hint."},{"name":"fusionGroup","type":"text","description":"Fusion group."},{"name":"cacheable","type":"bool","description":"Cacheable."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"graphNode(text name, text operatorKind, tensorPlanHint tensorHint, text fusionGroup, bool cacheable, text note)","description":"Graph node.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"CanFuseWith","kind":"method","parameters":[{"name":"other","type":"graphNode","description":"Other."}],"returns":"bool","signature":"CanFuseWith(graphNode other) returns bool","description":"Can fuse with.","tags":["thing","method","compute.graph"],"exampleId":"method-CanFuseWith-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/graph.yh","line":5,"sha256":"95bb29f53014a420ab0b1dfc18800f567a8e06f197650f133522eb254009014f"},"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 graphNode","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.\ngraphNode sample = graphNode(\"Nova\", \"operator Kind\", tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\"), \"fusion Group\", true, \"note\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphnode\"\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":"7928e956e26f4294a3761023cc06f90c0321226e9266a0c6af816e230de81c70","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-CanFuseWith-7","title":"graphNode.CanFuseWith","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Can fuse with.\ngraphNode instance = graphNode(\"Nova\", \"operator Kind\", tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\"), \"fusion Group\", true, \"note\")\ngraphNode argument_other = graphNode(\"Nova\", \"operator Kind\", tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\"), \"fusion Group\", true, \"note\")\nbool result = instance.CanFuseWith(argument_other)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphnode\"\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":"3693bc236252b78567f03944b9c8d86142f795f4d6cbb33cab56a84e1c2fa166","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"graphNode.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.\ngraphNode instance = graphNode(\"Nova\", \"operator Kind\", tensorPlanHint(\"Player health\", tensorShape(\"element Type\", []), tensorPlacement(\"device\", \"memory\"), \"execution Path\", \"fallback Path\", \"cache Key\", true, true, \"note\"), \"fusion Group\", true, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphnode\"\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":"acaf1a9024f6ce0c61e99453327fed256d55eafccf8a11663535b9bf9685c769","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","operatorKind","tensorHint","fusionGroup","cacheable","note","graphNode","CanFuseWith","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--graphNode","json":"https://demonhunterlabs.com/reference/items/compute.graph--graphNode.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--graphNode.md"}
