Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault #4

Open
flyingmrwang opened this issue Mar 6, 2018 · 1 comment
Open

segmentation fault #4

flyingmrwang opened this issue Mar 6, 2018 · 1 comment

Comments

@flyingmrwang
Copy link

Any idea for solving this? I just re-compiled caffe after merging your dw_conv.
This shows when I use caffe timer on both cpu and gpu mode.

*** Aborted at 1520306614 (unix time) try "date -d @1520306614" if you are using GNU date ***
PC: @ 0x7f8694ae4b06 caffe::ConvolutionDepthwiseLayer<>::LayerSetUp()
*** SIGSEGV (@0x0) received by PID 31868 (TID 0x7f8695694ac0) from PID 0; stack trace: ***
@ 0x7f869372a4b0 (unknown)
@ 0x7f8694ae4b06 caffe::ConvolutionDepthwiseLayer<>::LayerSetUp()
@ 0x7f8694ca29a5 caffe::Net<>::Init()
@ 0x7f8694ca4a88 caffe::Net<>::Net()
@ 0x40bc2a time()
@ 0x407360 main
@ 0x7f8693715830 __libc_start_main
@ 0x407a19 _start
@ 0x0 (unknown)
Segmentation fault (core dumped)

@jkjung-avt
Copy link

This conv_dw_layer.cpp does not implement a default value (should be 1) for 'stride'. So you have to explicitly add 'stride: 1' in the layer definition in your prototxt.

layer {
name: "conv2_1/dwise"
type: "Convolution"
bottom: "conv2_1/expand/bn"
top: "conv2_1/dwise"
param {
lr_mult: 1
decay_mult: 1
}
convolution_param {
num_output: 32
bias_term: false
pad: 1
kernel_size: 3
group: 32
stride: 1
weight_filler {
type: "msra"
}
engine: CAFFE
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants