Signed-off-by: Edward Z. Yang <ezyangfb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/75187

Approved by: https://github.com/zou3519
This commit is contained in:
Edward Z. Yang 2022-04-04 11:29:27 -04:00 committed by PyTorch MergeBot
parent 88edc21828
commit fd8f2e4018

View File

@ -19,7 +19,7 @@ namespace c10 {
// It is INVALID to store a reference to a Tensor object in this way;
// you should just use TensorImpl directly in that case!
struct C10_API SafePyObject {
// Steals a reference to type_object
// Steals a reference to data
SafePyObject(PyObject* data, c10::impl::PyInterpreter* pyinterpreter)
: data_(data), pyinterpreter_(pyinterpreter) {}