mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Typofix
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:
parent
88edc21828
commit
fd8f2e4018
|
|
@ -19,7 +19,7 @@ namespace c10 {
|
||||||
// It is INVALID to store a reference to a Tensor object in this way;
|
// It is INVALID to store a reference to a Tensor object in this way;
|
||||||
// you should just use TensorImpl directly in that case!
|
// you should just use TensorImpl directly in that case!
|
||||||
struct C10_API SafePyObject {
|
struct C10_API SafePyObject {
|
||||||
// Steals a reference to type_object
|
// Steals a reference to data
|
||||||
SafePyObject(PyObject* data, c10::impl::PyInterpreter* pyinterpreter)
|
SafePyObject(PyObject* data, c10::impl::PyInterpreter* pyinterpreter)
|
||||||
: data_(data), pyinterpreter_(pyinterpreter) {}
|
: data_(data), pyinterpreter_(pyinterpreter) {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user