tqchen commented on a change in pull request #7488:
URL: https://github.com/apache/tvm/pull/7488#discussion_r581027219



##########
File path: include/tvm/runtime/c_runtime_api.h
##########
@@ -559,6 +559,20 @@ TVM_DLL int TVMByteArrayFree(TVMByteArray* arr);
 TVM_DLL int TVMDeviceAllocDataSpace(DLContext ctx, size_t nbytes, size_t 
alignment,
                                     DLDataType type_hint, void** out_data);
 
+/*!
+ * \brief Allocate a data space on device.

Review comment:
       ```
   Allocate a data space on device with special memory scope. 
   
   \note The memory could use a special multi-dimensional memory layout. That 
is why we pass shape,
            and dtype instead of raw number of bytes.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to