Skip to content

Commit

Permalink
remove nearest_neighbors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nikhilaravi authored and facebook-github-bot committed Apr 16, 2020
1 parent 790eb8c commit 3794f67
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 217 deletions.
2 changes: 0 additions & 2 deletions pytorch3d/csrc/ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "face_areas_normals/face_areas_normals.h"
#include "gather_scatter/gather_scatter.h"
#include "knn/knn.h"
#include "nearest_neighbor_points/nearest_neighbor_points.h"
#include "packed_to_padded_tensor/packed_to_padded_tensor.h"
#include "point_mesh/point_mesh_edge.h"
#include "point_mesh/point_mesh_face.h"
Expand All @@ -21,7 +20,6 @@ PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("padded_to_packed", &PaddedToPacked);
m.def("knn_points_idx", &KNearestNeighborIdx);
m.def("knn_points_backward", &KNearestNeighborBackward);
m.def("nn_points_idx", &NearestNeighborIdx);
m.def("gather_scatter", &gather_scatter);
m.def("rasterize_points", &RasterizePoints);
m.def("rasterize_points_backward", &RasterizePointsBackward);
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion pytorch3d/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from .graph_conv import GraphConv
from .knn import knn_gather, knn_points
from .mesh_face_areas_normals import mesh_face_areas_normals
from .nearest_neighbor_points import nn_points_idx
from .packed_to_padded import packed_to_padded, padded_to_packed
from .points_alignment import corresponding_points_alignment
from .sample_points_from_meshes import sample_points_from_meshes
Expand Down
43 changes: 0 additions & 43 deletions pytorch3d/ops/nearest_neighbor_points.py

This file was deleted.

42 changes: 0 additions & 42 deletions tests/bm_nearest_neighbor_points.py

This file was deleted.

91 changes: 0 additions & 91 deletions tests/test_nearest_neighbor_points.py

This file was deleted.

0 comments on commit 3794f67

Please sign in to comment.