threshold-xnor3

3-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0 or 2).

Architecture

Cascade: XNOR3(a,b,c) = XOR(XNOR(a,b), c)

a,b โ”€โ”€โ–บ XNOR โ”€โ”€โ–บ XOR โ”€โ”€โ–บ output
            c โ”€โ”€โ”˜

Parameters

Neurons 6
Layers 4
Parameters 18
Magnitude 19

Truth Table

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

Usage

from safetensors.torch import load_file

w = load_file('model.safetensors')
# See model.py for forward pass

License

MIT

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including phanerozoic/threshold-xnor3