mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Clean up more clang-tidy supression (#92203)
1. remove unused NOLINTNEXTLINE(performance-move-const-arg) 2. add more std::move Pull Request resolved: https://github.com/pytorch/pytorch/pull/92203 Approved by: https://github.com/Skylion007
This commit is contained in:
@ -2180,7 +2180,6 @@ void initTensorImplConversion(PyObject* module) {
|
||||
unsafe_reclaim_from_nonowning(static_cast<c10::TensorImpl*>(ptr));
|
||||
TORCH_CHECK(p.defined(), "Can't wrap undefined tensor");
|
||||
auto tensor = at::Tensor::wrap_tensor_impl(std::move(p));
|
||||
// NOLINTNEXTLINE(performance-move-const-arg)
|
||||
return py::cast(std::move(tensor));
|
||||
});
|
||||
// set on the module level to avoid mixing pybind and plain CPython extensions
|
||||
|
Reference in New Issue
Block a user