Documenting CuPy wrapper progress
See original GitHub issueStarting this issue to document progress on wrapping CuPy.
-
import autograd.cupy as cp
- instantiate arrays from scalars, lists, and tuples.
cp.array(1)
cp.array([1, 2])
cp.array([1, 3]) + cp.array([1, 1])
- check that gradients work
import autograd.cupy as cp
from autograd import elementwise_grad as egrad
def f(x):
return cp.sin(x)
def g(x):
return x + 2
df = egrad(f)
dg = egrad(g)
a = cp.array([1, 1])
print(f(a))
print(df(a))
print(g(a))
print(dg(a))
- Check that higher derivatives work.
import autograd.cupy as cp
from autograd import elementwise_grad as egrad
import numpy as np
a = cp.arange(-2 * np.pi, 2 * np.pi, 0.01)
def sin(x):
return cp.sin(x)
dsin = egrad(sin)
ddsin = egrad(dsin)
sin(a)
dsin(a)
ddsin(a)
- Fix
ValueError: object __array__ method not producing an array
. - Run tests for all of the CuPy wrapped functions.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:25 (21 by maintainers)
Top Results From Across the Web
CuPy Documentation
In this documentation, we describe how to define and call each ... NumPy handles them by raising an error, but CuPy wraps around...
Read more >CuPy Documentation - Read the Docs
CuPy is a NumPy/SciPy-compatible array library for GPU-accelerated computing with Python. CuPy acts as a drop-in.
Read more >Python API Reference — xgboost 1.7.2 documentation
When input data is on GPU, prediction result is stored in a cupy array. Return type ... Scikit-Learn Wrapper interface for XGBoost. class...
Read more >10 Minutes to cuDF and Dask-cuDF - RAPIDS Docs
Full documentation of string methods is a work in progress. Please see the cuDF API documentation for more information. s = cudf.
Read more >Summit User Guide - OLCF User Documentation
Spectrum MPI provides compiler wrappers that automatically choose the proper ... Monitor the job's progress before and during execution.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Running the tests for CuPy, there’s at least some progress!
Here’s the latest example:
I have encountered other problems though, an example: