Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ndarray 0.15 #61

Open
elidupree opened this issue Jan 3, 2023 · 2 comments
Open

Upgrade to ndarray 0.15 #61

elidupree opened this issue Jan 3, 2023 · 2 comments

Comments

@elidupree
Copy link

I'm trying to use autograd in conjunction with another library (nshare) which only supports ndarray 0.15. I recognize that this incompatibility isn't autograd's fault, but it seems like the simplest solution would be for autograd to support the latest version of ndarray.

I forked autograd and made a quick attempt to implement this myself; it looks like most of the issues are straightforward renamings. The only real sticking point was some slicing stuff in array_ops. But unfortunately that is a bit beyond my current understanding of ndarray.

@raskr
Copy link
Owner

raskr commented Jan 8, 2023

ndarray used internally is exported as autograd::ndarray. Will that resolve this issue?

@elidupree
Copy link
Author

A good suggestion, but that's actually the first thing I tried! Because autograd::ndarray is ndarray 0.14, it can't be passed to nshare's functions, because they only take an ndarray 0.15 as an argument. I also tried using an older version of nshare that depended on ndarray 0.14, but it was too old to have the features I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants