File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1919#define DLPACK_MAJOR_VERSION 1
2020
2121/* ! \brief The current minor version of dlpack */
22- #define DLPACK_MINOR_VERSION 1
22+ #define DLPACK_MINOR_VERSION 2
2323
2424/* ! \brief DLPACK_DLL prefix for windows */
2525#ifdef _WIN32
@@ -257,15 +257,16 @@ typedef struct {
257257 /* !
258258 * \brief The shape of the tensor
259259 *
260- * When ndim == 0, we suggest to set the shape to NULL.
260+ * When ndim == 0, shape can be set to NULL.
261261 */
262262 int64_t * shape;
263263 /* !
264264 * \brief strides of the tensor (in number of elements, not bytes),
265265 * can not be NULL if ndim != 0, must points to
266- * an array of ndim elements that specifies the strides.
266+ * an array of ndim elements that specifies the strides,
267+ * so consumer can always rely on strides[dim] being valid for 0 <= dim < ndim.
267268 *
268- * When ndim == 0, we suggest to set the strides to NULL.
269+ * When ndim == 0, strides can be set to NULL.
269270 *
270271 * \note Before DLPack v1.2, strides can be NULL to indicate contiguous data.
271272 * This is not allowed in DLPack v1.2 and later. The rationale
You can’t perform that action at this time.
0 commit comments