Anakin icon indicating copy to clipboard operation
Anakin copied to clipboard

Crash when Optimize Graph?

Open dmxj opened this issue 5 years ago • 5 comments

code here

auto status = graph->load("./output/lenet.anakin.bin"); graph->ResetBatchSize("input_0", batch_size); graph->Reshape("input_0", {1, 1, 28, 28}); //! optimize the graph LOG(INFO) << "optimize the graph"; graph->Optimize();

it's crash when run at "graph->Optimize()".

error here: image

if I comment graph->Optimize() ,there will be all dim of input is 0.

auto d_tensor_in_p = net_executer.get_in("input_0"); auto valid_shape_in = d_tensor_in_p->valid_shape(); for (int i = 0; i < valid_shape_in.size(); i++) { LOG(INFO) << "detect input dims[" << i << "]" << valid_shape_in[i]; }

image

dmxj avatar Aug 13 '18 06:08 dmxj

what's kind of model you used? Caffe? pls try v0.1.1

LittleMaer avatar Aug 14 '18 05:08 LittleMaer

OK,I will try. So, what versions of Caffe's model support?

and today,I have try paddle model, but similar errors happened.

wechatimg30

This model is a simple minist recognition model, it trained by paddlepaddle == 0.14.0, and in Anakin server, paddle's version is also 0.14.0, protobuf-python's version is 3.6.1, python's version is 2.7.15.  The structure of model: wechatimg31

dmxj avatar Aug 14 '18 11:08 dmxj

@dmxj what kind of os do you use? please attach os info to us cat /etc/os-release

pangge avatar Aug 14 '18 12:08 pangge

@pangge OS Info:

image

image

dmxj avatar Aug 14 '18 12:08 dmxj

This looks like a compile option error? How do you compile this code and our library? Do you use our static library?

throneclay avatar Aug 14 '18 12:08 throneclay