Skip to content

Commit 3794f67

Browse files
nikhilaravifacebook-github-bot
authored andcommitted
remove nearest_neighbors
Summary: knn is more general and faster than the nearest_neighbor code, so remove the latter. Reviewed By: gkioxari Differential Revision: D20816424 fbshipit-source-id: 75d6c44d17180752d0c9859814bbdf7892558158
1 parent 790eb8c commit 3794f67

File tree

6 files changed

+0
-217
lines changed

6 files changed

+0
-217
lines changed

pytorch3d/csrc/ext.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "face_areas_normals/face_areas_normals.h"
88
#include "gather_scatter/gather_scatter.h"
99
#include "knn/knn.h"
10-
#include "nearest_neighbor_points/nearest_neighbor_points.h"
1110
#include "packed_to_padded_tensor/packed_to_padded_tensor.h"
1211
#include "point_mesh/point_mesh_edge.h"
1312
#include "point_mesh/point_mesh_face.h"
@@ -21,7 +20,6 @@ PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
2120
m.def("padded_to_packed", &PaddedToPacked);
2221
m.def("knn_points_idx", &KNearestNeighborIdx);
2322
m.def("knn_points_backward", &KNearestNeighborBackward);
24-
m.def("nn_points_idx", &NearestNeighborIdx);
2523
m.def("gather_scatter", &gather_scatter);
2624
m.def("rasterize_points", &RasterizePoints);
2725
m.def("rasterize_points_backward", &RasterizePointsBackward);

pytorch3d/csrc/nearest_neighbor_points/nearest_neighbors_points_cpu.cpp

-38
This file was deleted.

pytorch3d/ops/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .graph_conv import GraphConv
66
from .knn import knn_gather, knn_points
77
from .mesh_face_areas_normals import mesh_face_areas_normals
8-
from .nearest_neighbor_points import nn_points_idx
98
from .packed_to_padded import packed_to_padded, padded_to_packed
109
from .points_alignment import corresponding_points_alignment
1110
from .sample_points_from_meshes import sample_points_from_meshes

pytorch3d/ops/nearest_neighbor_points.py

-43
This file was deleted.

tests/bm_nearest_neighbor_points.py

-42
This file was deleted.

tests/test_nearest_neighbor_points.py

-91
This file was deleted.

0 commit comments

Comments
 (0)