Views
No views yet
x
│
▼
┌───────┐
│ w: -1 │
│ b: 0 │
└───────┘
│
▼
NOT(x)| Weight | -1 |
| Bias | 0 |
| Total | 2 parameters |
1from safetensors.torch import load_file
2
3w = load_file('model.safetensors')
4
5def not_gate(x):
6 return int(x * w['weight'].item() + w['bias'].item() >= 0)threshold-not/
├── model.safetensors
├── model.py
├── config.json
└── README.md