i have a model with some somemodules. I want to log the weights and gradients using a nested “folder”-strukture so that i can for example navigate like this:

gradients-modeltype1 -model1

gradietns-modeltype1-model2

gradients-model2

gradietns-parameters

and the same with the weights. preferably like a dropdown navigation

your doku states:

```
Logging nested metrics is encouraged and is supported in the W&B UI. If you log with a nested dictionary like wandb.log({"train": {"acc": 0.9}, "val": {"acc": 0.8}}), the metrics will be organized into train and val sections in the W&B UI.
```

so i tried to use the nested dict stucture with:

```
..
weights = layer.get_weights()
if len(weights) == 1:
metrics.update(flatten_dict.flatten({
"weights": {
model_type: {
model.name: {
layer.name + ".weights": _convert_weights(weights[0], histogram=histogram)
}
}
}
}))
....
return flatten_dict.unflatten(metrics)
```

but all i get are pathnames with dots in the middle. no folding stucture. like this I even only get single histograms for all the biases and weights as a list of 300 elements. Not very usefull.

is there a way to get this working? It realy would help me a lot . I realy hope this feature exists!!