mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Relands #103907 after it was reverted. This PR makes the new `ignore_hermetic_tls` argument of `check_pyobj` optional to avoid causing a compilation error in torchdistx Part of #91395 Pull Request resolved: https://github.com/pytorch/pytorch/pull/109039 Approved by: https://github.com/ezyang
8 lines
181 B
C
8 lines
181 B
C
#pragma once
|
|
|
|
#include <torch/csrc/python_headers.h>
|
|
|
|
// This file contains utilities used for handling PyObject preservation
|
|
|
|
void clear_slots(PyTypeObject* type, PyObject* self);
|