# LayerKron

``` python
LayerKron(a, g, total_weight)
```

The KFAC factors of one layer, summed over a batch.

The per-example average is approximated by `(g / W) ⊗ (a / W)` with `W` the `total_weight`.

## Attributes

| Name | Type | Description |
|----|----|----|
| a | Tensor | Input factor `[D_in + 1, D_in + 1]`, the bias column last, when the layer has a bias, else `[D_in, D_in]`. For a grouped Conv2d, `D_in` is per group. |
| g | Tensor | Output-gradient factor `[D_out, D_out]`. |
| total_weight | Tensor | `W`, the summed weight of the examples that counted. |
