Downloads · 30 days
13
28% of all-time downloads
phanerozoic/threshold-xnor4
threshold-xnor4 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.
4-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0, 2, or 4).
Downloads · 30 days
13
28% of all-time downloads
All-time downloads
46
Public
Parameters
27
1.5 KB on disk
Likes
0
Public
Click a slice to open those files.
.py3 KB · 44%
From the Hugging Face model README
4-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0, 2, or 4).
Tree structure: XNOR4(a,b,c,d) = XNOR(XNOR(a,b), XNOR(c,d))
a,b ──► XNOR ──┐
├──► XNOR ──► output
c,d ──► XNOR ──┘
| Neurons | 9 |
| Layers | 4 |
| Parameters | 27 |
| Magnitude | 27 |
from safetensors.torch import load_file
w = load_file('model.safetensors')
# See model.py for forward pass
MIT