# \[ANN\] NNParamsPrinter.jl - Quickly print the layers and weights of your Lux NNs

**URL:** https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094
**Category:** Package Announcements
**Tags:** package, announcement, pretty-printing
**Created:** [October 9, 2024, 8:35am UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094 "2024-10-09T08:35:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![onedeeper](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/onedeeper/32/212517_2.png) [@onedeeper](https://discourse.julialang.org/u/onedeeper)
#### Post date: [October 9, 2024, 8:35am UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094/1 "2024-10-09T08:35:08Z")

</div>

[NNParamsPrinter.jl](https://github.com/onedeeper/NNParamsPrinter.jl) is a lightweight, simple printer of NN parameters. This is all it does. Please check the GitHub readme for usage.

Why did I make this ?

I wanted to quickly see the weights of a simple NN in a readable way. My use case was in [universal differential equations](https://en.wikipedia.org/wiki/Neural_differential_equation). I had to write a small piece of code for it, which I thought others could benefit from, save them a few minutes 🙂

I hope it is useful in some way.

Thank you!

---

<div class="post-metadata">

### Author: ![Tortar](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@Tortar](https://discourse.julialang.org/u/Tortar)
#### Post date: [October 9, 2024, 3:19pm UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094/2 "2024-10-09T15:19:41Z")

</div>

Cool! Do you think it can be contributed to Lux itself? 🙂

---

<div class="post-metadata">

### Author: ![avikpal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avikpal/32/6550_2.png) [@avikpal](https://discourse.julialang.org/u/avikpal)
#### Post date: [October 9, 2024, 4:33pm UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094/3 "2024-10-09T16:33:20Z")

</div>

If you use [Experimental Features | Lux.jl Docs](https://lux.csail.mit.edu/stable/api/Lux/contrib#Lux.Experimental.layer_map) then you can extend your function to support all layers in a generic fashion

---

<div class="post-metadata">

### Author: ![onedeeper](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/onedeeper/32/212517_2.png) [@onedeeper](https://discourse.julialang.org/u/onedeeper)
#### Post date: [October 10, 2024, 7:35am UTC](https://discourse.julialang.org/t/ann-nnparamsprinter-jl-quickly-print-the-layers-and-weights-of-your-lux-nns/121094/4 "2024-10-10T07:35:54Z")

</div>

Thanks for the suggestions @Tortar and @avikpal ! I will work on these 🙂
