Skip to content
Back to skills

Layers And Nets

ASecurity

"Use Sonnet built-in layers, normalization modules, initializers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill layers-and-nets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Layers And Nets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Layers And Nets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-layers-and-nets/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-layers-and-nets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: layers-and-nets
description: "Use Sonnet built-in layers, normalization modules, initializers,
  metrics, and predefined nets with correct shapes and state."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Sonnet Layers and Nets

Use this sub-skill for Sonnet built-ins: `Linear`, `Bias`, convolutions, transpose/depthwise convolutions, embeddings, reshape/flatten, dropout, normalization, initializers, regularizers, metrics, moving averages, and `snt.nets` models such as `MLP`, `Cifar10ConvNet`, `ResNet`, and VQ-VAE quantizers.

## Start here

1. Read [references/api-reference.md](references/api-reference.md) for grouped signatures and shape/state contracts.
2. Read [references/workflows.md](references/workflows.md) for MLP, Conv2D+BatchNorm, ResNet, VQ-VAE, metrics, and regularizer recipes.
3. Read [references/troubleshooting.md](references/troubleshooting.md) for unknown dimensions, bias conflicts, normalization state, VQ-VAE errors, and dropout flag failures.
4. Run [scripts/layers_and_nets_smoke.py](scripts/layers_and_nets_smoke.py) for a safe no-download shape/state check.

## Boundaries

- Custom module design: [../module-authoring/SKILL.md](../module-authoring/SKILL.md).
- Training/optimizer loops: [../training-and-optimization/SKILL.md](../training-and-optimization/SKILL.md).
- Recurrent modules: [../sequence-and-rnn/SKILL.md](../sequence-and-rnn/SKILL.md).
- Serialization/distribution: [../serialization-and-distribution/SKILL.md](../serialization-and-distribution/SKILL.md).

## Validation checklist

Known feature/channel dimensions are required on first call. `with_bias=False` forbids `b_init`. BatchNorm calls must pass `is_training`. VQ-VAE inputs must end with `embedding_dim`. `snt.nets.MLP` requires `is_training` only when dropout is enabled.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md1.8 KB
  • references/troubleshooting.md1.2 KB
  • references/workflows.md1.2 KB
  • scripts/layers_and_nets_smoke.py1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…