Commit f0f696ee by Siju Samuel Committed by Tianqi Chen

[Compilation Warning Fix] comparison between signed and unsigned integer expressions (#807)

The compilation warning is fixed. 
src/runtime/graph/graph_runtime.cc:392:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   CHECK(data_byte_size == size)
         ~~~~~~~~~~~~~~~^~~~
/mnt/D_DRIVE/work/nnvm_22_Jan/nnvm_latest/tvm/dmlc-core/include/dmlc/logging.h:109:9: note: in definition of macro ‘CHECK’
   if (!(x))                                                \
         ^
parent e3ddc8da
......@@ -386,7 +386,7 @@ void GraphRuntime::LoadDLTensor(dmlc::Stream* strm, DLTensor* dst) {
for (int i = 0; i < dst->ndim; ++i) {
size *= dst->shape[i];
}
int64_t data_byte_size;
uint64_t data_byte_size;
CHECK(strm->Read(&data_byte_size, sizeof(data_byte_size)))
<< "Invalid DLTensor file format";
CHECK(data_byte_size == size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment