{"id":"compute.graph--graphGradientSpec","name":"graphGradientSpec","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing graphGradientSpec","description":"A graph gradient spec record carrying name, lossKind, targetKind, accumulationSteps, hasTape, 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":"lossKind","kind":"field","type":"text","description":"Stores loss kind as text.","signature":"text lossKind","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"targetKind","kind":"field","type":"text","description":"Stores target kind as text.","signature":"text targetKind","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"accumulationSteps","kind":"field","type":"int","description":"Stores accumulation steps as int.","signature":"int accumulationSteps","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"hasTape","kind":"field","type":"bool","description":"Stores has tape as bool.","signature":"bool hasTape","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":"graphGradientSpec","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"lossKind","type":"text","description":"Loss kind."},{"name":"targetKind","type":"text","description":"Target kind."},{"name":"accumulationSteps","type":"int","description":"Accumulation steps."},{"name":"hasTape","type":"bool","description":"Has tape."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"graphGradientSpec(text name, text lossKind, text targetKind, int accumulationSteps, bool hasTape, text note)","description":"Graph gradient spec.","tags":["thing","constructor","compute.graph"],"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-7","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/training.yh","line":17,"sha256":"df3f352a0daeea888785284ad41be26df4c606c7ffe50b68ed7188f4fcee4410"},"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 graphGradientSpec","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.\ngraphGradientSpec sample = graphGradientSpec(\"Nova\", \"loss Kind\", \"target Kind\", 1, true, \"note\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphgradientspec\"\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":"738a54b683ac5f73d4fa61da72dd7e3099fd22d27932b518fb4773695287bd04","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"graphGradientSpec.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.\ngraphGradientSpec instance = graphGradientSpec(\"Nova\", \"loss Kind\", \"target Kind\", 1, true, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__graphgradientspec\"\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":"a73fb99db1db82b434d094dad9bcbd897952cf3fd04ec789af91c905f8477c93","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","lossKind","targetKind","accumulationSteps","hasTape","note","graphGradientSpec","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--graphGradientSpec","json":"https://demonhunterlabs.com/reference/items/compute.graph--graphGradientSpec.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--graphGradientSpec.md"}
