Anakin
Anakin copied to clipboard
Crash when Optimize Graph?
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:
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]; }
what's kind of model you used? Caffe? pls try v0.1.1
OK,I will try. So, what versions of Caffe's model support?
and today,I have try paddle model, but similar errors happened.
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:
@dmxj what kind of os do you use? please attach os info to us cat /etc/os-release
@pangge OS Info:
This looks like a compile option error? How do you compile this code and our library? Do you use our static library?