question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Linear Algebra routines in ChainerX

See original GitHub issue

I’d like to work on adding linear algebra routines to ChainerX during GSoC. Most of the numpy.linalg functions listed in ChainerX routines spreadsheet have low priority, so their implementation probably can wait for the summer.

Many linalg operations have optimized implementations in various open source alternatives, for example in LAPACK (there is a C++ interface). Is it expected to implement forward operations from scratch, or link to existing implementations?

For autodiff, derivatives for some routines are described here

Ref. #6423

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
hvycommented, Jul 19, 2019

#7474 has now been merged 😃

1reaction
IvanYashchukcommented, Oct 10, 2019

Here is the table to track the progress

Routine Forward CUDA Forward Native Backward Merged?
linalg.cholesky yes
linalg.qr yes
linalg.svd yes
linalg.eigh yes
linalg.solve yes
linalg.inv yes
linalg.pinv yes
Read more comments on GitHub >

github_iconTop Results From Across the Web

Array Operations — Chainer 7.8.1 documentation
Array creation routines¶ ; chainerx.identity. Returns a 2-D identity array. ; chainerx.ones. Returns a new array of given shape and dtype, filled with...
Read more >
ChainerX routines (public) - Google Drive
A B C E F G H I J 1 Category Routine Priority Difficulty C++ Python Backprop FunctionNode 2 NumPy Creation identity Duplicate NA 3 NumPy...
Read more >
Released Chainer v7.0.0b4 - Google Groups
Many updates to ChainerX including new routines and support for loss ... Fix matrix generation in linear algebra PseudoInverse test (#8102) ...
Read more >
Linear algebra (numpy.linalg) — NumPy v1.24 Manual
Several of the linear algebra routines listed above are able to compute results for several matrices at once, if they are stacked into...
Read more >
Linear Algebra (scipy.linalg) — SciPy v1.9.3 Manual
All of these linear algebra routines expect an object that can be converted ... Therefore, unless you don't want to add scipy as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found