L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · 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

Documentation de la Skill

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.

Skills enregistrées