# core.pytree

``` python
core.pytree(cls)
```

Make `cls` a frozen dataclass registered as a torch pytree node.

## Parameters

| Name | Type | Description | Default |
|----|----|----|----|
| cls | C | The class to decorate. Its fields marked `static()` go into the treedef context; the others are children. | *required* |

## Returns

| Name | Type | Description                       |
|------|------|-----------------------------------|
|      | C    | The frozen dataclass, registered. |
