Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
561 Views

"Error in `python3': malloc(): memory corruption" occured when I reshape a big tensor in caffe

The caffe prototxt as follows:

 

layer {

 

name: "seg_out"

 

type: "Reshape"

 

bottom: "score"

 

top: "seg_out"

 

reshape_param {

 

shape {

 

dim: 1

 

dim: 2

 

dim: 300

 

dim: 300

 

}

 

}

 

}

 

layer {

 

name: "seg_out_reshape"

 

type: "Reshape"

 

bottom: "seg_out"

 

top: "seg_out_reshape"

 

reshape_param {

 

shape {

 

dim: 1

 

dim: -1

 

dim: 1

 

dim: 1

 

}

 

}

 

}

 

when I use NCSDK V2 and mvNCCompile to reshape the seg_out tensor[1, 2, 300, 300] to [1, -1, 1, 1]

 

it occurs:

 

…..

 

_Blob generated

 

USB: Transferring Data…

 

*** Error in `python3': malloc(): memory corruption: 0x00007f18f9ab3a50 ***

 

======= Backtrace: =========

 

/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f19f28567e5]

 

/lib/x86_64-linux-gnu/libc.so.6(+0x8213e)[0x7f19f286113e]_

 

……

 

As I debug the api code , it seems that happens while process the function in mvncapi.py as follows:

 

myriad_output, userobj = fifoOut.read_elem()

 

status = f.ncFifoReadElem(self.handle, byref( tensor), byref(elementsize), byref(user_obj))
0 Kudos
0 Replies
Reply