-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Segmentation fault when using 'simple_bind' #817
Comments
ping @winstywang |
If you want to use FeedForward model you should use it's fit API instead of binding by yourself. |
Thank you for your reply. Since I just want to do predicting instead of training, the fit API is not a choice here. And the source code in predict function in mxnet also use simple_bind like what I do above. And I've found that if I replace |
@piiswrong To make it more clear, I think the code is the same as |
Can you run any example with GPU? a quick work around is to fit with end_epoch=0 so that FeedFoward model can bind for you without training |
model = mx.model.FeedForward.load('path/to/model', 5, ctx=mx.gpu(0))
data = your_data_iter
depth = model.predict(data) This code works fine for me. |
@piiswrong He only needs the symbol stored in the checkpoint. If he initializes the symbol from scratch, it works fine. |
Hi, I've got a 'Segmentation fault' when I try to use a pre-trained model to do
simple_bind
operation. The model is converted from vgg16 Caffe model by the tool in mxnet. And the code works if I comment out the last line.This is the code:
This is what I got from gdb
The text was updated successfully, but these errors were encountered: