| 34 | } |
| 35 | |
| 36 | void check_equal_gpuid(const torch::Tensor& a, const torch::Tensor& b) { |
| 37 | TORCH_CHECK( |
| 38 | a.device().index() == b.device().index(), |
| 39 | "expected equal gpu id, got ", a.device().index(), " != ", b.device().index() |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | std::vector<torch::Tensor> estimate_normals( |
| 44 | const torch::Tensor& vertices_ndc, |