CoolFace
Modelpublic

phanerozoic/threshold-shiftright4

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes8downloads
Model Card

threshold-shiftright4

4-bit logical right shift by 1 bit.

Function

shiftright4(a3, a2, a1, a0) = [0, a3, a2, a1]

LSB (a0) is discarded, 0 shifts in at MSB.

Examples

InputOutput
00010000
01010010
10000100
11110111

Architecture

Single layer with 4 neurons.

OutputSourceWeightsBias
y30[0,0,0,0]-1
y2a3[1,0,0,0]-1
y1a2[0,1,0,0]-1
y0a1[0,0,1,0]-1

Parameters

Inputs4
Outputs4
Neurons4
Layers1
Parameters8
Magnitude7

License

MIT