Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant Numerical Scalars may get nonsensical type #253

Open
ethancaballero opened this issue Aug 15, 2019 · 0 comments
Open

Constant Numerical Scalars may get nonsensical type #253

ethancaballero opened this issue Aug 15, 2019 · 0 comments

Comments

@ethancaballero
Copy link
Collaborator

ethancaballero commented Aug 15, 2019

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
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant