{"id":"compute.graph--CreatePortableGraphNode","name":"CreatePortableGraphNode","owner":"yeho","package":"compute.graph","kind":"function","signature":"external CreatePortableGraphNode(text name, text kind, text kernelName, list of text inputs, list of text outputs, list of text mutations, list of text dependencies, text effect, text requestedDevice, bool fallbackAllowed, bool cacheable, text fusionGroup, text specializationKey) returns portableGraphNode","description":"Create portable graph node from the supplied values.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[{"name":"name","type":"text","description":"Supply name as text."},{"name":"kind","type":"text","description":"Supply kind as text."},{"name":"kernelName","type":"text","description":"Supply kernel name as text."},{"name":"inputs","type":"list of text","description":"Supply inputs as list of text."},{"name":"outputs","type":"list of text","description":"Supply outputs as list of text."},{"name":"mutations","type":"list of text","description":"Supply mutations as list of text."},{"name":"dependencies","type":"list of text","description":"Supply dependencies as list of text."},{"name":"effect","type":"text","description":"Supply effect as text."},{"name":"requestedDevice","type":"text","description":"Supply requested device as text."},{"name":"fallbackAllowed","type":"bool","description":"Supply fallback allowed as bool."},{"name":"cacheable","type":"bool","description":"Supply cacheable as bool."},{"name":"fusionGroup","type":"text","description":"Supply fusion group as text."},{"name":"specializationKey","type":"text","description":"Supply specialization key as text."}],"returns":"portableGraphNode","members":[],"tags":["compute","compute.graph","cpu","function","graph","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/portable_contract.yh","line":581,"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 CreatePortableGraphNode","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.\ntext name = \"Nova\"\ntext kind = \"kind\"\ntext kernelName = \"kernel Name\"\nlist of text inputs = []\nlist of text outputs = []\nlist of text mutations = []\nlist of text dependencies = []\ntext effect = \"effect\"\ntext requestedDevice = \"requested Device\"\nbool fallbackAllowed = true\nbool cacheable = true\ntext fusionGroup = \"fusion Group\"\ntext specializationKey = \"specialization Key\"\nportableGraphNode result = CreatePortableGraphNode(name, kind, kernelName, inputs, outputs, mutations, dependencies, effect, requestedDevice, fallbackAllowed, cacheable, fusionGroup, specializationKey)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__createportablegraphnode\"\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":"e4fa962a2896c099b89028310373dc495be9b8f5e4071262b106bf673816041a","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--CreatePortableGraphNode","json":"https://demonhunterlabs.com/reference/items/compute.graph--CreatePortableGraphNode.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--CreatePortableGraphNode.md"}
