--- license: mit tags: - pytorch - safetensors - threshold-logic - neuromorphic --- # threshold-xnor4 4-input XNOR gate. Outputs 1 when an even number of inputs are 1 (0, 2, or 4). ## Architecture Tree structure: XNOR4(a,b,c,d) = XNOR(XNOR(a,b), XNOR(c,d)) ``` a,b ──► XNOR ──┐ ├──► XNOR ──► output c,d ──► XNOR ──┘ ``` ## Parameters | | | |---|---| | Neurons | 9 | | Layers | 4 | | Parameters | 27 | | Magnitude | 27 | ## Usage ```python from safetensors.torch import load_file w = load_file('model.safetensors') # See model.py for forward pass ``` ## License MIT