Skip to content

Commit aa2c2cf

Browse files
committed
Update NULL note, bump minor
1 parent 63a9a32 commit aa2c2cf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/dlpack/dlpack.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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

0 commit comments

Comments
 (0)