[2/N] Fix extra warnings brought by clang-tidy-17 (#137459)

Follows #137407

Pull Request resolved: https://github.com/pytorch/pytorch/pull/137459
Approved by: https://github.com/Skylion007
This commit is contained in:
cyy
2024-10-08 19:05:00 +00:00
committed by PyTorch MergeBot
parent b41fc14072
commit a2396b2dd8
59 changed files with 138 additions and 231 deletions

View File

@ -39,7 +39,7 @@ void initThroughputBenchmarkBindings(PyObject* module) {
const py::kwargs& kwargs) {
// Depending on this being ScriptModule of nn.Module we will release
// the GIL or not further down in the stack
return self.runOnce(std::move(args), kwargs);
return self.runOnce(args, kwargs);
})
.def(
"benchmark",