python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Convert a list of cupy array to comination of list
I have a list of cupy.array as follow,
X_train = [[[cp.array([[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]]),
cp.array([0.96376295, 0.4473439 ])]],
[[cp.array([[0., 0.,...
Sina Baghali
Votes: 0
Answers: 0
Cupy sparse matrix does not correspond to its Scipy equivalence?
I digged the documentation for cupy sparse matrix.
as in scipy I expect to have something like this:
from scipy.sparse import csr_matrix
A_csr = csr_matrix([[1, 2, 0], [0, 0, 3], [4, 0, 5]])
but in c...

Abolfazl
Votes: 0
Answers: 1
Failed to import cupy
After installing cupy via "pip install cupy-cuda110", I tried this in python3:
import cupy as cp
However, it failed:
"
$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GC...
ztan
Votes: 0
Answers: 2
How to use Conda-installed Python module outside environment
I have downloaded cusignal with Conda using:
conda create -n rapids-22.02 -c rapidsai -c nvidia -c conda-forge \
cusignal=22.02 python=3.8 cudatoolkit=11.2
I have many other libraries that I use ...
secokit123
Votes: 0
Answers: 1