# `ExTorch.NN.Layer`

Represents an instantiated neural network layer (nn.Module).

A `%ExTorch.NN.Layer{}` wraps a reference to a `torch::nn::AnyModule`,
which can hold any PyTorch layer type (Linear, Conv2d, ReLU, etc.).

Use `ExTorch.NN` functions to create layers and run forward passes.

# `t`

```elixir
@type t() :: %ExTorch.NN.Layer{
  reference: reference(),
  resource: any(),
  type_name: String.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
