alanmacd commented on code in PR #13909:
URL: https://github.com/apache/tvm/pull/13909#discussion_r1106245380


##########
src/runtime/crt/common/crt_runtime_api.c:
##########
@@ -112,7 +112,7 @@ int TVMDeviceAllocDataSpaceWithScope(DLDevice dev, int 
ndim, const int64_t* shap
 
 int TVMDeviceFreeDataSpace(DLDevice dev, void* ptr) { return 
TVMPlatformMemoryFree(ptr, dev); }
 
-static bool IsContiguous(const DLTensor* arr) {
+TVM_ATTRIBUTE_UNUSED static bool IsContiguous(const DLTensor* arr) {

Review Comment:
   `IsContiguous()` is only used in an `assert()` below, so in a non-debug 
build we get an unused function warning



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to