The interface is localized. Skill descriptions and documents are machine-translated by AI into your language; code, commands, paths and technical terms stay in the original, and the author's document governs.
Explore skills
Productivity · SKILL.md

functional-transforms

functional-transforms

Use Sonnet's functional transform API for stateless-style modules, gradients, jit/device helpers, and functional optimizers.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill documentation

GitHub

name: functional-transforms description: "Use Sonnet's functional transform API for stateless-style modules, gradients, jit/device helpers, and functional optimizers." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Functional Transforms

Use this sub-skill for snt.functional.variables, transform, transform_with_state, without_state, grad, value_and_grad, jit, device_put, device_get, TensorVariable behavior, parameter/state dictionaries, and functional optimizers.

Start here

Boundaries

Minimal protocol

Create modules inside fn.variables(), wrap a function with fn.transform or fn.transform_with_state, call init before apply, carry returned params and state explicitly, and use fn.value_and_grad plus a functional optimizer when the task wants stateless-style updates.

Saved skills