You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/02/23 13:19:21 UTC

[GitHub] [tvm] tqchen commented on a change in pull request #7488: [Runtime] Special Memory Scope Support

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:
users@infra.apache.org