This is quite specific to the origin of torch-approx as a backend for AGN Approx. To make it more generally useful, this feature should be kept on a separate branch and the noise implementation replaced with a more generic interface that adds Gaussian Noise of a fixed mean and standard deviation to the layer output
The noise mode of the layer currently adds a zero mean tensor with learnable standard deviation.
https://github.com/etrommer/torch-approx/blob/5740d50c8abfd714d86ab6286b27aa3b545cdee9/src/torchapprox/layers/approx_layer.py#L50-L60
This is quite specific to the origin of torch-approx as a backend for AGN Approx. To make it more generally useful, this feature should be kept on a separate branch and the noise implementation replaced with a more generic interface that adds Gaussian Noise of a fixed mean and standard deviation to the layer output
https://github.com/etrommer/torch-approx/blob/8284cf7953ad9bde1d3c4e4c0ce9d5c67f4ff7bd/src/torchapprox/layers/approx_layer.py#L48-L74