wrong error message on matrix multiplication type error #467
sb10q
commented 2024-07-21 13:31:12 +08:00
Owner
```
from numpy import array as np_array
from artiq.experiment import *
from artiq.coredevice.core import Core
@nac3
class Test(EnvExperiment):
core: KernelInvariant[Core]
def build(self):
self.setattr_device("core")
@kernel
def run(self):
x = np_array([[1.0, 3.0], [1.09, 2.42]])
y = 2.0 @ np_array([[1.0, 0.0], [0.0, 1.0]])
for i in range(len(x)):
print_rpc(y[i])
```
```
thread '<unnamed>' panicked at nac3core/src/toplevel/numpy.rs:84:85:
called `Option::unwrap()` on a `None` value
```
lyken
self-assigned this 2024-07-21 13:48:19 +08:00
lyken
removed their assignment 2024-07-21 16:04:59 +08:00
lyken
self-assigned this 2024-08-27 11:46:35 +08:00
lyken
referenced this issue 2024-08-27 11:51:32 +08:00
core/typecheck: add missing typecheck in matmul #510
sb10q
closed this issue 2024-08-27 23:11:41 +08:00
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#467
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?