metagraph-dev / mlir-graphblas

MLIR tools and dialect for GraphBLAS
https://mlir-graphblas.readthedocs.io/en/latest/
Apache License 2.0
18 stars 6 forks source link

Numpy arrays -> tensor is sometimes broken #253

Open jim22k opened 2 years ago

jim22k commented 2 years ago

I found this while testing Application Classification. A CSV file is parsed by pandas, then sliced into a numpy array, only using some of the columns. When passing this array into MLIR as a dense tensor, things got weird fast. Forcing the numpy array through np.ascontiguousarray fixed everything, so somehow we are not fully handling all the strides, etc of the array.