mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user