alexwong opened a new issue #5835: URL: https://github.com/apache/incubator-tvm/issues/5835
I recently tried to run the darknet tutorial using a shared library built from the master branch (https://github.com/pjreddie/darknet) rather than the one hosted here https://github.com/dmlc/web-data/tree/master/darknet/lib which seems to be https://github.com/siju-samuel/darknet/tree/tvm. I am hitting an error in the darknet->relay converter. ``` Traceback (most recent call last): File "tutorials/frontend/from_darknet.py", line 92, in <module> mod, params = relay.frontend.from_darknet(net, dtype=dtype, shape=data.shape) File "/tvm/python/tvm/relay/frontend/darknet.py", line 851, in from_darknet return GraphProto(net, shape, dtype).from_darknet() File "/tvm/python/tvm/relay/frontend/darknet.py", line 815, in from_darknet params = self._get_darknet_params(self._net.layers[i], prefix) File "/tvm/python/tvm/relay/frontend/darknet.py", line 664, in _get_darknet_params params = self._get_convolution_weights(layer, opname) File "/tvm/python/tvm/relay/frontend/darknet.py", line 470, in _get_convolution_weights biases = self._read_memory_buffer((layer.n, ), layer.biases) File "/tvm/python/tvm/relay/frontend/darknet.py", line 455, in _read_memory_buffer data_np[i] = data[i] RuntimeError: cannot dereference null pointer from cdata 'float *' ``` Using either the .so hosted by TVM or building https://github.com/siju-samuel/darknet/tree/tvm works fine. I am wondering if this is a version problem between the master darknet branch and the one TVM is testing against (although, it seems the one TVM is using isn't that stale). If so, I am also wondering if/when the converter and library used by TVM for testing will be updated to the master version? @siju-samuel ---------------------------------------------------------------- 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: us...@infra.apache.org