> For the complete documentation index, see [llms.txt](https://hypergan.gitbook.io/hypergan/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hypergan.gitbook.io/hypergan/components/loss/ali-loss.md).

# ALI Loss

Adds two or more layers together. Accepts nested layer definitions.

## input size

Any number of matching tensors

## Output size

Same as input size

## syntax

```javascript
  "add [layer]*"
```

## examples

```javascript
  "add self (attention)"
```
