Giter Club home page Giter Club logo

Comments (3)

phofl avatar phofl commented on May 23, 2024

cc @rjzamora

from dask.

rjzamora avatar rjzamora commented on May 23, 2024

Thanks for submitting an issue @Michaw1985 !

I'm not sure if da.linalg.solve is currently supported for cupy backed data. I see some errors when I run a simple case locally:

import dask.array as da
import cupy as cp

a = da.asarray(cp.array([[3, 2, 0], [1, -1, 0], [0, 5, 1]]))
b = da.asarray(cp.array([2, 4, -1]))
z = da.linalg.solve(a, b)
z.compute()
...
    562 @set_module('numpy')
    563 def asarray_chkfinite(a, dtype=None, order=None):
    564     """Convert the input to an array, checking for NaNs or Infs.
    565 
    566     Parameters
   (...)
    624 
    625     """
--> 626     a = asarray(a, dtype=dtype, order=order)
    627     if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all():
    628         raise ValueError(
    629             "array must not contain infs or NaNs")

File cupy/_core/core.pyx:1475, in cupy._core.core._ndarray_base.__array__()

TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly.

I can probably look into this error because I can reproduce it locally. However, The error you shared above is clearly a bit different. Are you able to share a minimal reproducer?

from dask.

Michaw1985 avatar Michaw1985 commented on May 23, 2024

I tried to get it reproduced with a minimal reproducer, but failed. I tried a simplified version of my code, but only got the error you got. I think it has the same cause, but if you want I can send you my code privately for further review.

from dask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.