mila-iqia/myia

Constant Numerical Scalars may get nonsensical type

ethancaballero opened this issue · 0 comments

e.g.

from myia import myia
import numpy as np
from myia.prim.py_implementations import reshape

@myia
def f(x):
    return reshape(x, (2.1,))

f(np.asarray([[2], [1]]))
AbstractTuple((
    <PendingFromList finished result=UInt[64]> = 2.1
))