Skip to content

Talario\Sequential

Requires a Talario build. Licensed builds are available through sales. There is no public download. Availability

__construct

new Sequential(array $layers)

Build a stack from Linear/Conv2d/MaxPool2d objects and activation callables.

__invoke

__invoke(Tape $t, int $x): int

Run the full forward stack.

parameters

parameters(): array

The trainable sub-layers (those exposing params()).

stateDict

stateDict(): array

Collect all layer weights for saving.

loadState

loadState(array $dict): void

Restore weights into a same-architecture model.

Using a coding agent?

Copy a prompt for Talario\Sequential, with 3 exact API signatures.