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 568f81f commit a5489e3Copy full SHA for a5489e3
spec/design_topics/data_interchange.md
@@ -124,6 +124,9 @@ be inspected by name.
124
The consumer must set the PyCapsule name to `"used_dltensor"`, and call the
125
`deleter` of the `DLPackManagedTensor` when it no longer needs the data.
126
127
+Note: the capsule names ``"dltensor"`` and `"used_dltensor"` must be statically
128
+allocated.
129
+
130
When the `strides` field in the `DLTensor` struct is `NULL`, it indicates a
131
row-major compact array. If the array is of size zero, the data pointer in
132
`DLTensor` should be set to either `NULL` or `0`.
0 commit comments