frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

"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))
Sign In or Register to comment.