Skip to content

Commit

Permalink
refactor: Add nodiscard qualifier
Browse files Browse the repository at this point in the history
Add `nodiscard` qualifier to `delete_labels_by_min_points` and
`_delete_labels_by_min_points`.
  • Loading branch information
TomSchammo committed Jan 4, 2024
1 parent cd0383c commit a7d5d08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LidarAug/cpp/include/transformations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ delete_labels_by_min_points(at::Tensor points, at::Tensor labels,
* @returns a `std::pair` of `torch::Tensor` containing the new labels and their
* names (in that order).
*/
inline std::pair<torch::Tensor, torch::Tensor>
[[nodiscard]] inline std::pair<torch::Tensor, torch::Tensor>
_delete_labels_by_min_points(at::Tensor points, at::Tensor labels,
at::Tensor names, const tensor_size_t min_points) {

Expand Down
2 changes: 1 addition & 1 deletion LidarAug/cpp/src/transformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void rotate_random(at::Tensor points, at::Tensor labels, float sigma) {
return new_tensor;
}

std::pair<torch::List<torch::Tensor>, torch::List<torch::Tensor>>
[[nodiscard]] std::pair<torch::List<torch::Tensor>, torch::List<torch::Tensor>>
delete_labels_by_min_points(at::Tensor points, at::Tensor labels,
at::Tensor names, const tensor_size_t min_points) {

Expand Down

0 comments on commit a7d5d08

Please sign in to comment.