programlibs/Flow/demos/mlp.xtl
W2 : Float
W2 ← 4 2 r̲eshape -8.0 8.0 24.0 -24.0 0.0 0.0 2.0 -2.0
Used in: Y, libs/Flow/demos/mlp.xtl:28
Y : Float
Y ← @ ᶠˡᵒʷp̲ipe< c"
ᶠˡᵒʷp̲ipe< expands to
({ @ →
g1:stage ← X
g2:stage ← { @ →
it ← g1:stage
it ⁿⁿd̲ense W1
} @
g3:stage ← ᵃᶜᵗr̲elu g2:stage
g4:stage ← { @ →
it ← g3:stage
it ⁿⁿd̲ense W2
} @
g5:stage ← ⁿⁿs̲oftmax g4:stage
g5:stage
} @)H : Float
H ← @ ᶠˡᵒʷp̲ipe< c"X ▷ ᵃᶜᵗr̲elu it ⁿⁿd̲ense W1 ▹h [4 3] ▷ h"
ᶠˡᵒʷp̲ipe< expands to
({ @ →
g8:stage ← X
h ← { @ →
it ← g8:stage
ᵃᶜᵗr̲elu it ⁿⁿd̲ense W1
} @
_ ← { @ →
((s̲hape h) m̲atch r̲avel 4 c̲at 3) ? @
"shape" ⎕S̲IGNAL "stage 2 (h): shape " c̲at (f̲ormat s̲hape h) c̲at ", expected " c̲at f̲ormat r̲avel 4 c̲at 3
} @
g9:stage ← h
g9:stage
} @)Used in: libs/Flow/demos/mlp.xtl:39