diff --git a/include/dlpack/dlpack.h b/include/dlpack/dlpack.h index 0bdc1fe..dd77681 100644 --- a/include/dlpack/dlpack.h +++ b/include/dlpack/dlpack.h @@ -213,6 +213,9 @@ typedef struct { * return size; * } * \endcode + * + * Note that if the tensor is of size zero, then the data pointer should be + * set to `NULL`. */ void* data; /*! \brief The device of the tensor */