[1/N] Apply clang-tidy to c10 cuda files (#111137)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/111137
Approved by: https://github.com/zou3519, https://github.com/Skylion007
This commit is contained in:
cyy
2023-10-17 04:52:47 +00:00
committed by PyTorch MergeBot
parent 46000bede6
commit 43b023694e
12 changed files with 149 additions and 155 deletions

View File

@ -807,12 +807,12 @@ PyObject* THCPModule_attachOutOfMemoryObserver(
Py_XINCREF(observer);
auto obs = [observer](
int64_t device,
int64_t alloc,
int64_t device_allocated,
int64_t device_free) {
size_t alloc,
size_t device_allocated,
size_t device_free) {
py::gil_scoped_acquire g;
PyObject* result = PyObject_CallFunction(
observer, "LLLL", device, alloc, device_allocated, device_free);
observer, "LKKK", device, alloc, device_allocated, device_free);
if (!result) {
throw py::error_already_set();
}