Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6405 Discussions

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

idata
Employee
1,321 Views

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