<!-- Black (default) - White - League - Sky - Beige - Simple
Serif - Blood - Night - Moon - Solarized -->
<style>
body {
background: #ffffff;
background-color: #ffffff;
}
.reveal .slides {
font-size: 24px;
font-family: Palatino;
}
.reveal .slides h2 {
font-size: 48px;
font-family: Palatino;
letter-spacing: 0.005em;
}
.reveal .slides h3 {
font-size: 36px;
font-family: Palatino;
letter-spacing: 0.005em;
}
.reveal .slides h4 {
font-family: Palatino;
font-size: 28px;
letter-spacing: 0.005em;
}
.reveal pre {
display: block;
width: 80%;
}
.reveal pre code {
max-height: 500px;
font-size: 20px;
line-height: 24px;
}
ul {
font-size: 24px;
}
ul ul {
font-size:0.85em;
}
</style>
## Array Libraries Interoperability
slides: [hackmd.io/@anirudh/tqz-array-interop](https://hackmd.io/@anirudh/tqz-array-interop)
---
## Projects Involved
Array-API
uarray
SciPy
NumPy
CuPy
PyTorch
---
## What's Interoperability?
The ability of computer systems or software to exchange and make use of information.
---
## Array-API Standard Goals?
---
## What is SciPy?
All things "Sciency" put together.
---
## What is uarray?
* backend / dispatch mechanism
* separately define an API, along with backends containing separate implementations of that API.
* user can register an implementation
---
## SciPy | uarray
```python
# SciPy ndimage with CuPy array
from scipy import ndimage
import cupy as cp
with scipy.ndimage.set_backend('cupy'):
y_cupy = ndimage.correlate1d(cp.arange(10),
cp.array([1, 2.5]))
```
---
### SciPy | Array API
```python
from scipy import signal
import torch
fs = 10e3
x = torch.tensor(...)
f, Pxx_den = signal.welch(x, fs, nperseg=1024)
```
---
### PyTorch
Improve Array-API Support (working currently)
---
## Thanks!
{"metaMigratedAt":"2023-06-16T06:07:52.878Z","metaMigratedFrom":"YAML","title":"Array Libraries Interoperability","breaks":true,"description":"View the slide with \"Slide Mode\".","slideOptions":"{\"transition\":\"fade\",\"theme\":\"sky\"}","contributors":"[{\"id\":\"c2527c0b-2aca-4972-850f-f12531e5a6fe\",\"add\":1058,\"del\":2333}]"}