Threshold Logic Circuits
Collection
Boolean gates, voting functions, modular arithmetic, and adders as threshold networks.
โข
248 items
โข
Updated
โข
1
3-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0 or 2).
Cascade: XNOR3(a,b,c) = XOR(XNOR(a,b), c)
a,b โโโบ XNOR โโโบ XOR โโโบ output
c โโโ
| Neurons | 6 |
| Layers | 4 |
| Parameters | 18 |
| Magnitude | 19 |
| a | b | c | output |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
from safetensors.torch import load_file
w = load_file('model.safetensors')
# See model.py for forward pass
MIT