Threshold Logic Circuits
Collection
Boolean gates, voting functions, modular arithmetic, and adders as threshold networks.
β’
248 items
β’
Updated
β’
1
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