pyFDN.Response#
- class pyFDN.Response(h, fs)[source]#
The impulse response of an FDN, as a loss sees it.
- Variables:
h (torch.Tensor) – Impulse response of shape
(n_samples, n_out, n_in)– the same convention aspyFDN.build_to_impz(). This is the response itself: any anti-aliasing envelope the model was built with has already been removed by the shell’s output layer, sohis accurate toalias_decay_db(seepyFDN.trainable_from_build()) and needs no further correction. Differentiable during training.fs (float) – Sample rate in Hz.
- __init__(h, fs)#
Methods
__init__(h, fs)hpermuted to FLAMO's(batch, n_samples, n_out)layout.Attributes
|spectrum|, shape(n_samples // 2 + 1, n_out, n_in).rfft(h)over time -- shape(n_samples // 2 + 1, n_out, n_in).