We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196c68b commit b3f69e3Copy full SHA for b3f69e3
python/PyDLExt.h
@@ -28,7 +28,7 @@ static std::vector<PyTensorBundle> kPyCapsulesPool;
28
29
inline PyCapsule enpycapsulate(DLManagedTensorPtr tensor, bool autodestruct = true)
30
{
31
- auto capsule = PyCapsule(tensor, kDLTensorCapsuleName, nullptr);
+ auto capsule = PyCapsule(tensor, kDLTensorCapsuleName); // default destructor is nullptr
32
if (autodestruct)
33
PyCapsule_SetDestructor(
34
capsule.ptr(),
0 commit comments