programlibs/Conv/demos/edges.xtl
Conv on one small picture: a square, two edge filters, ReLU and pooling, drawn. Run with "just demo-lib Conv edges".
r : Int
A 10 x 10 picture: a bright square on dark.
r ← (o̲ffsets 10) 'l̲eft t̲able o̲ffsets 10
Used in: x
x : Float
x ← 1 10 10 r̲eshape f̲loat (r > 2) ∧ (r < 7) ∧ (cc > 2) ∧ cc < 7
Used in: libs/Conv/demos/edges.xtl:15, m
K : Float
Two filters: left-to-right brightening (a left edge), and top-to-bottom.
K ← 2 9 r̲eshape -1.0 0.0 1.0 -1.0 0.0 1.0 -1.0 0.0 1.0 -1.0 -1.0 -1.0 0.0 0.0 0.0 1.0 1.0 1.0
Used in: m