Skip to content

Commit

Permalink
Update cpp of pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-ps committed Apr 19, 2022
1 parent 19d92c5 commit 12efcb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytorch/cpp/points_property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ Tensor points_property(Tensor points, string property) {
int npt = points_in.info().pt_num();
int channel = points_in.info().channel(ptype);
const float* ptr = points_in.ptr(ptype);
CHECK_NE(ptr, nullptr) << "The specified property does not exist.";
// CHECK_NE(ptr, nullptr) << "The specified property does not exist.";
if (ptr == nullptr) {
return Tensor();
}

Tensor data_out = torch::zeros({npt, channel}, torch::dtype(torch::kFloat32));
float* out_ptr = data_out.data_ptr<float>();
Expand Down

0 comments on commit 12efcb4

Please # to comment.