# What is snnTorch? Definition and meaning

A PyTorch library for building and training spiking neural networks with surrogate gradients.

## Definition

**snnTorch**: A PyTorch library for building and training spiking neural networks with surrogate gradients.

In short: Spiking neural networks in PyTorch.

## When it is used

Prototyping and training spiking models with familiar tooling.

## Learn more

The full guide to **[snnTorch](/tools/snntorch)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [SmoothQuant](/glossary/smoothquant) · Next term: [Snowflake](/glossary/snowflake)
