You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/03/03 04:46:42 UTC

[GitHub] estarpro opened a new issue #14306: mxnet-cuda100 malloc problem of mod.forward()

estarpro opened a new issue #14306: mxnet-cuda100 malloc problem of mod.forward()
URL: https://github.com/apache/incubator-mxnet/issues/14306
 
 
   Hi, I am new to mxnet .And I had mxnet-cuda100 malloc problem when executing function mod.forward(Batch(data1))
   ## Environment info (Required)
   opencv-python==4.0.0.21
   mxnet-cu100==1.3.1
   Ubuntu 16.04.5 
   matplotlib==2.2.3
   
   Build config:
   I installed mxnet from pip .
   
   ## Error Message:
   
   *** Error in `python': free(): invalid pointer: 0x00007fbdc9ce3490 ***
   Py/spatial/_distance_wrap.so has been abandoned (core dumped)
   ## Minimum reproducible example
   
   Batch = namedtuple('Batch', ['data'])
   sym, arg_params, aux_params = mx.model.load_checkpoint('model', 0)
   mod = mx.mod.Module(symbol=sym, context=mx.gpu(), label_names=None)
   mod.bind(for_training=False, data_shapes=[('data', (1, 3, 112, 112))])
   mod.set_params(arg_params, aux_params, allow_missing=True)
   img = plt.imread('Tom_Hanks_54745.png')
   mod.forward(Batch([mx.nd.array(img)])) 
   
   ## What have you tried to solve it?
   I thought maybe there were some conflicts in memory allocators between cv and mxnet.But when I changed to plt,the problem also existed.I deleted the last line and the code was correct.
   Could someone give me some suggestions?Thanks a lot.
   

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


With regards,
Apache Git Services