Georgia Gkioxari b2b0c5a442 knn autograd
Summary:
Adds knn backward to return `grad_pts1` and `grad_pts2`. Adds `knn_gather` to return the nearest neighbors in pts2.

The BM tests include backward pass and are ran on an M40.
```
Benchmark                               Avg Time(μs)      Peak Time(μs) Iterations
--------------------------------------------------------------------------------
KNN_SQUARE_32_256_128_3_24_cpu              39558           43485             13
KNN_SQUARE_32_256_128_3_24_cuda:0            1080            1404            463
KNN_SQUARE_32_256_512_3_24_cpu              81950           85781              7
KNN_SQUARE_32_256_512_3_24_cuda:0            1519            1641            330
--------------------------------------------------------------------------------

Benchmark                               Avg Time(μs)      Peak Time(μs) Iterations
--------------------------------------------------------------------------------
KNN_RAGGED_32_256_128_3_24_cpu              13798           14650             37
KNN_RAGGED_32_256_128_3_24_cuda:0            1576            1713            318
KNN_RAGGED_32_256_512_3_24_cpu              31255           32210             16
KNN_RAGGED_32_256_512_3_24_cuda:0            2024            2162            248
--------------------------------------------------------------------------------
```

Reviewed By: jcjohnson

Differential Revision: D20945556

fbshipit-source-id: a16f616029c6b5f8c2afceb5f2bc12c5c20d2f3c
2020-04-14 17:22:56 -07:00
..
2020-03-17 08:58:40 -07:00
2020-01-23 11:53:46 -08:00
2020-04-14 17:22:56 -07:00
2020-04-11 00:21:24 -07:00
2020-04-06 06:41:00 -07:00
2020-04-06 06:41:00 -07:00
2020-04-06 10:03:57 -07:00
2020-04-14 17:22:56 -07:00
2020-04-11 00:21:24 -07:00
2020-03-30 11:27:41 -07:00
2020-04-06 06:41:00 -07:00
2020-04-11 00:21:24 -07:00
2020-04-06 06:41:00 -07:00
2020-04-11 00:21:24 -07:00
2020-01-23 11:53:46 -08:00