PaddlePaddle / Anakin

High performance Cross-platform Inference-engine, you could run Anakin on x86-cpu,arm, nv-gpu, amd-gpu,bitmain and cambricon devices.
https://anakin.baidu.com/
Apache License 2.0
532 stars 135 forks source link

LRN has not been registered, ConvBatchnormScaleReluPool has not been registered error with Anakin inference engine #512

Open avinashcpandey opened 5 years ago

avinashcpandey commented 5 years ago

I followed below link for running CNN benchmark it
https://github.com/PaddlePaddle/Anakin/tree/developing/benchmark/CNN https://github.com/PaddlePaddle/Anakin/blob/developing/docs/Manual/Converter_en.md

Steps I followed:

  1. I downloaded below model files for alexnet caffe.proto https://github.com/BVLC/caffe/blob/master/src/caffe/proto/caffe.proto

    alexnet.prototxt
    https://github.com/BVLC/caffe/blob/master/models/bvlc_alexnet/deploy.prototxt
    
    alexnet.caffemodel
     http://dl.caffe.berkeleyvision.org/bvlc_alexnet.caffemodel
  2. Then I used below Anakin converter to convert it into Anakin
    https://github.com/PaddlePaddle/Anakin/blob/developing/docs/Manual/Converter_en.md

  3. Now when I run run.sh for benchmark following below link https://github.com/PaddlePaddle/Anakin/tree/developing/benchmark/CNN

I get below error: 0| 16:01:55.00997| 0.221s| main_thread| input.cpp:19] |-- shape [3]: 227 FTL| 16:01:55.00997| 0.221s| main_thread| factory.h:37] LRN has not been registered! ** fatal error: stack trace: 5 0x417c99 _start + 41 4 0x7f7289445830 __libc_start_main + 240 3 0x417b77 main + 791 2 0x425815 anakin::test::EngineTest::run_all(char const*) + 789 1 0x41c264 NetTest_net_execute_base_test::net_execute_base_test() + 2420 0 0x7f728a75bbec anakin::Net<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, (anakin::saber::DataType)1, (anakin::Precision)0, (anakin::OpRunType)1>::Net(anakin::graph::Graph<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum)4>, (anakin::saber::DataType)1, (anakin::Precision)0>&, bool) + 172 Aborted (core dumped)**

With Resnet50 model i get below error

FTL| 15:21:08.00991| 0.244s| main_thread| factory.h:37] ConvBatchnormScaleReluPool has not been registered! fatal error: stack trace: 5 0x417c99 _start + 41 4 0x7f310fec8830 __libc_start_main + 240 3 0x417b77 main + 791 2 0x425815 anakin::test::EngineTest::run_all(char const*) + 789 1 0x41c264 NetTest_net_execute_base_test::net_execute_base_test() + 2420 0 0x7f31111debec anakin::Net<anakin::saber::TargetType<(anakin::saber::TargetTypeEnum

qq332982511 commented 5 years ago

LRN and other OP have been added in https://github.com/PaddlePaddle/Anakin/pull/515, wait for merge

avinashcpandey commented 5 years ago

Thanks for the update! Can you check one issue(FPE error) i raised with Anakin(AMD GPU backend) ? https://github.com/PaddlePaddle/Anakin/issues/516