Add ASR circuit (arithmetic shift right) - 26 tensors, 256/256 tests pass
Browse files- neural_computer.safetensors +2 -2
- tensors.txt +27 -1
- todo.md +1 -1
neural_computer.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4e117c9089f63533738fb0b832e09ef7c7e55973fa0b21cf7baaaec710f30ed
|
| 3 |
+
size 427612
|
tensors.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Tensor Manifest
|
| 2 |
-
# Total:
|
| 3 |
|
| 4 |
alu.alu8bit.add.bias: shape=[1], values=[0.0]
|
| 5 |
alu.alu8bit.add.weight: shape=[16], values=[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
|
|
@@ -203,6 +203,32 @@ arithmetic.adc8bit.fa7.xor2.layer1.or.bias: shape=[1], values=[-1.0]
|
|
| 203 |
arithmetic.adc8bit.fa7.xor2.layer1.or.weight: shape=[2], values=[1.0, 1.0]
|
| 204 |
arithmetic.adc8bit.fa7.xor2.layer2.bias: shape=[1], values=[-2.0]
|
| 205 |
arithmetic.adc8bit.fa7.xor2.layer2.weight: shape=[2], values=[1.0, 1.0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
arithmetic.cmp8bit.fa0.and1.bias: shape=[1], values=[-2.0]
|
| 207 |
arithmetic.cmp8bit.fa0.and1.weight: shape=[2], values=[1.0, 1.0]
|
| 208 |
arithmetic.cmp8bit.fa0.and2.bias: shape=[1], values=[-2.0]
|
|
|
|
| 1 |
# Tensor Manifest
|
| 2 |
+
# Total: 3858 tensors
|
| 3 |
|
| 4 |
alu.alu8bit.add.bias: shape=[1], values=[0.0]
|
| 5 |
alu.alu8bit.add.weight: shape=[16], values=[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
|
|
|
|
| 203 |
arithmetic.adc8bit.fa7.xor2.layer1.or.weight: shape=[2], values=[1.0, 1.0]
|
| 204 |
arithmetic.adc8bit.fa7.xor2.layer2.bias: shape=[1], values=[-2.0]
|
| 205 |
arithmetic.adc8bit.fa7.xor2.layer2.weight: shape=[2], values=[1.0, 1.0]
|
| 206 |
+
arithmetic.asr8bit.bit0.bias: shape=[1], values=[-0.5]
|
| 207 |
+
arithmetic.asr8bit.bit0.src: shape=[1], values=[1.0]
|
| 208 |
+
arithmetic.asr8bit.bit0.weight: shape=[1], values=[1.0]
|
| 209 |
+
arithmetic.asr8bit.bit1.bias: shape=[1], values=[-0.5]
|
| 210 |
+
arithmetic.asr8bit.bit1.src: shape=[1], values=[2.0]
|
| 211 |
+
arithmetic.asr8bit.bit1.weight: shape=[1], values=[1.0]
|
| 212 |
+
arithmetic.asr8bit.bit2.bias: shape=[1], values=[-0.5]
|
| 213 |
+
arithmetic.asr8bit.bit2.src: shape=[1], values=[3.0]
|
| 214 |
+
arithmetic.asr8bit.bit2.weight: shape=[1], values=[1.0]
|
| 215 |
+
arithmetic.asr8bit.bit3.bias: shape=[1], values=[-0.5]
|
| 216 |
+
arithmetic.asr8bit.bit3.src: shape=[1], values=[4.0]
|
| 217 |
+
arithmetic.asr8bit.bit3.weight: shape=[1], values=[1.0]
|
| 218 |
+
arithmetic.asr8bit.bit4.bias: shape=[1], values=[-0.5]
|
| 219 |
+
arithmetic.asr8bit.bit4.src: shape=[1], values=[5.0]
|
| 220 |
+
arithmetic.asr8bit.bit4.weight: shape=[1], values=[1.0]
|
| 221 |
+
arithmetic.asr8bit.bit5.bias: shape=[1], values=[-0.5]
|
| 222 |
+
arithmetic.asr8bit.bit5.src: shape=[1], values=[6.0]
|
| 223 |
+
arithmetic.asr8bit.bit5.weight: shape=[1], values=[1.0]
|
| 224 |
+
arithmetic.asr8bit.bit6.bias: shape=[1], values=[-0.5]
|
| 225 |
+
arithmetic.asr8bit.bit6.src: shape=[1], values=[7.0]
|
| 226 |
+
arithmetic.asr8bit.bit6.weight: shape=[1], values=[1.0]
|
| 227 |
+
arithmetic.asr8bit.bit7.bias: shape=[1], values=[-0.5]
|
| 228 |
+
arithmetic.asr8bit.bit7.src: shape=[1], values=[7.0]
|
| 229 |
+
arithmetic.asr8bit.bit7.weight: shape=[1], values=[1.0]
|
| 230 |
+
arithmetic.asr8bit.shiftout.bias: shape=[1], values=[-0.5]
|
| 231 |
+
arithmetic.asr8bit.shiftout.weight: shape=[1], values=[1.0]
|
| 232 |
arithmetic.cmp8bit.fa0.and1.bias: shape=[1], values=[-2.0]
|
| 233 |
arithmetic.cmp8bit.fa0.and1.weight: shape=[2], values=[1.0, 1.0]
|
| 234 |
arithmetic.cmp8bit.fa0.and2.bias: shape=[1], values=[-2.0]
|
todo.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
|-----------|--------------------------------------|-----------------------------------------------------|
|
| 25 |
| ROL | Rotate left through carry | Missing |
|
| 26 |
| ROR | Rotate right through carry | Missing |
|
| 27 |
-
| ASR | Arithmetic shift right (sign-extend) |
|
| 28 |
| ADC | Add with carry input | DONE - 144 tensors, 131072/131072 tests pass |
|
| 29 |
| SBC | Subtract with borrow | DONE - 160 tensors, 131072/131072 tests pass |
|
| 30 |
| CMP | Compare (SUB without writeback) | DONE - 168 tensors, 65536/65536 tests pass |
|
|
|
|
| 24 |
|-----------|--------------------------------------|-----------------------------------------------------|
|
| 25 |
| ROL | Rotate left through carry | Missing |
|
| 26 |
| ROR | Rotate right through carry | Missing |
|
| 27 |
+
| ASR | Arithmetic shift right (sign-extend) | DONE - 26 tensors, 256/256 tests pass |
|
| 28 |
| ADC | Add with carry input | DONE - 144 tensors, 131072/131072 tests pass |
|
| 29 |
| SBC | Subtract with borrow | DONE - 160 tensors, 131072/131072 tests pass |
|
| 30 |
| CMP | Compare (SUB without writeback) | DONE - 168 tensors, 65536/65536 tests pass |
|