neural-amp-modeler

Neural network emulator for guitar amplifiers
Log | Files | Refs | README | LICENSE

commit 82bd6a65c5d8e094f62598d516fbe23413f9ac87
parent a1ae9a1d2495e0a09505d443e28403736f6bdb03
Author: Steven Atkinson <[email protected]>
Date:   Mon,  9 Oct 2023 10:22:55 -0500

Fix issues with Linear model concretization (#318)


Diffstat:
Mnam/models/linear.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/nam/models/linear.py b/nam/models/linear.py @@ -62,9 +62,18 @@ class Linear(BaseNet): # And resume training state self.train(training) + def export_cpp_header(self): + raise NotImplementedError() + @property def _bias(self) -> bool: return self._net.bias is not None def _forward(self, x: torch.Tensor) -> torch.Tensor: return self._net(x[:, None])[:, 0] + + def _export_config(self): + raise NotImplementedError() + + def _export_weights(self) -> np.ndarray: + raise NotImplementedError()