Closed parrt closed 3 years ago
File testing/nested.py:
import tsensor
import numpy as np
def f():
np.ones(1) @ np.ones(2)
def A():
with tsensor.clarify():
f()
def B():
with tsensor.clarify():
A()
B()
Was displaying viz twice and augmenting twice:
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)
Cause: @ on tensor operand np.ones(1) w/shape (1,) and operand np.ones(2) w/shape (2,)
Cause: @ on tensor operand np.ones(1) w/shape (1,) and operand np.ones(2) w/shape (2,)
This is one of the issues at https://github.com/parrt/tensor-sensor/issues/15