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

Assignment in numpy interface doesn't compile #50

Closed
and-ivanov opened this issue Dec 3, 2019 · 1 comment
Closed

Assignment in numpy interface doesn't compile #50

and-ivanov opened this issue Dec 3, 2019 · 1 comment

Comments

@and-ivanov
Copy link
Collaborator

Describe the bug

error: cannot convert ‘dace::ArrayViewIn<float, 0, 1, 1>’ to ‘float*’ in assignment
         __tmp0 = dace::ArrayViewIn<float, 0, 1, 1> (a + 0);

To Reproduce

import numpy as np
import dace

@dace.program
def foo123(a : dace.float32[2], b : dace.float32[2]):
    b[0] = a[0]
    
A = np.array([1,2], dtype=np.float32)
B = np.array([3,4], dtype=np.float32)

foo123(A, B)

print(A)
print(B)
and-ivanov pushed a commit that referenced this issue Dec 4, 2019
@tbennun
Copy link
Collaborator

tbennun commented Jan 23, 2020

Fixed in #88 .

@tbennun tbennun closed this as completed Jan 23, 2020
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

2 participants