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



##########
File path: src/runtime/crt/common/crt_runtime_api.c
##########
@@ -106,8 +106,19 @@ int TVMDeviceAllocDataSpaceWithScope(DLContext ctx, int 
ndim, const int64_t* sha
 
 int TVMDeviceFreeDataSpace(TVMContext ctx, void* ptr) { return 
TVMPlatformMemoryFree(ptr, ctx); }
 
+static bool IsContiguous(const DLTensor* arr) {
+  if (arr->strides == nullptr) return true;

Review comment:
       nullptr is not recognized by c




----------------------------------------------------------------
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