Talario\Conv2d
Requires a Talario build. Licensed builds are available through sales. There is no public download. Availability
__construct
new Conv2d(Device $dev, int $cin, int $cout, int $kh, int $kw, int $stride = 1, int $pad = 0, bool $bias = true, ?int $seed = null)
Create a conv layer; weights stored as [Cin*KH*KW, Cout].
__invoke
__invoke(Tape $t, int $x): int
Forward convolution over the tape.
params
params(): array
The layer's trainable Parameters.
state
state(): array
Weights (and bias) as plain arrays for saving.
loadState
loadState(array $s): void
Restore weights from a state array.
Using a coding agent?
Copy a prompt for Talario\Conv2d, with 3 exact API signatures.