Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/.DS_STORE
**/.DS_STORE
.idea
72 changes: 72 additions & 0 deletions RFC-00xx-interpolation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Interpolation

## Authors

* Allen Goodman (@0x00b1)

## Summary

Interpolation is a technique for adding new data points in a range of a set of known data points. You can use interpolation to fill-in missing data, smooth existing data, make predictions, and more.

Interpolation operators operate on:

* data on a regular grid (i.e., predetermined, not necessarily, uniform, spacing); or
* scattered data on an irregular grid.

### `torch.interpolation.interpolate`

```Python
from typing import Callable, Optional, Tuple

from torch import Tensor

def interpolate(
x: Tuple[Tensor],
v: Tensor,
q: Tuple[Tensor],
f: Callable[[Tuple[Tensor]], Tuple[Tensor]],
*,
out: Optional[Tensor] = None
):
raise NotImplementedError
```

Interpolate $n$-dimensional data on a regular grid (i.e., predetermined, not necessarily, uniform, spacing).

### `torch.interpolation.unstructured_interpolate`

```Python
from typing import Callable, Optional, Tuple

from torch import Tensor

def unstructured_interpolate(
input: Tensor,
points: Tuple[Tensor],
x_i: Tuple[Tensor],
interpolant: Callable[[Tensor], Tensor],
*,
out: Optional[Tensor] = None
):
raise NotImplementedError
```

Interpolate scattered data on an irregular grid.

**Note**—Using this operation in dimensions greater than six is impractical because the memory required by the underlying Delaunay triangulation grows exponentially with its rank.

**Note**—Because this operator uses a Delaunay triangulation, it can be sensitive to scaling issues in `input`. When this occurs, you should standardize `input` to improve the results.

##### Parameters

**input** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) –

**points** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) –

**x_i** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) –

**interpolant** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor)) –

##### Keyword Arguments

**out** ([Tensor](https://pytorch.org/docs/stable/tensors.html#torch.Tensor), *optional*) – output.