Some simple fixes (#93221)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/93221
Approved by: https://github.com/Skylion007
This commit is contained in:
cyy
2023-01-30 05:14:03 +00:00
committed by PyTorch MergeBot
parent e790281a85
commit 4d51c8532c
5 changed files with 11 additions and 11 deletions

View File

@ -148,10 +148,10 @@ PyObject* THPCppFunction_next_functions(THPCppFunction* self, PyObject* hook) {
}
PyObject* THPCppFunction_metadata(THPCppFunction* self, void* _unused) {
auto metadata =
auto* metadata =
static_cast<PyAnomalyMetadata*>(self->cdata->metadata())->dict();
Py_INCREF(metadata);
Py_XINCREF(metadata);
return metadata;
}