Skip to main content
E0105: model has no layers

What happened

You called thx.compile(model, ...) with a Sequential that contains no layers.

Why

An empty model has no input shape, no output shape, and no parameters. It cannot be compiled, serialized, or run.

How to fix

Add at least one layer to the model before compiling:

Example