What happened
You calledthx.compile(model, ...) with a Sequential that contains no layers.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The model has no layers.
thx.compile(model, ...) with a Sequential that contains no layers.
model = snn.Sequential(
snn.Dense(700, 512),
snn.LIF(tau_mem=20.0, threshold=0.3),
snn.Dense(512, 20),
snn.LIF(tau_mem=20.0, threshold=0.3),
)
thx.compile(model, "model.thx")
E0105: model has no layers
Why: an empty Sequential cannot be compiled or simulated.
Fix: add at least one layer to the model before calling thx.compile().
Docs: https://docs.thrindex.com/errors/E0105