Downloads · 30 days
10
23% of all-time downloads
phanerozoic/threshold-rotateright4
threshold-rotateright4 is a machine learning model from phanerozoic. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
10
23% of all-time downloads
All-time downloads
43
Public
Parameters
20
Likes
0
Public
Click a slice to open those files.
.py2 KB · 57%
From the Hugging Face model README
4-bit rotate right by 1 bit.
rotateright4(a3, a2, a1, a0) = [a0, a3, a2, a1]
LSB wraps around to MSB position.
| Input | Output |
|---|---|
| 0001 | 1000 |
| 1000 | 0100 |
| 0101 | 1010 |
| 1111 | 1111 |
Single layer with 4 neurons.
| Output | Source | Weights | Bias |
|---|---|---|---|
| y3 | a0 | [0,0,0,1] | -1 |
| y2 | a3 | [1,0,0,0] | -1 |
| y1 | a2 | [0,1,0,0] | -1 |
| y0 | a1 | [0,0,1,0] | -1 |
| Inputs | 4 |
| Outputs | 4 |
| Neurons | 4 |
| Layers | 1 |
| Parameters | 8 |
| Magnitude | 8 |
MIT