Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.1 KB

how_to_support_multiple_branches_network.md

File metadata and controls

19 lines (11 loc) · 1.1 KB

Support multiple branches network

This means to support most caffe models. Need a lot of work.

  1. Modify the python script in convertor/src/net.py and convertor/src/layer.py, to generate a JSON file that contains multibranch information.

  2. Create some kind of mergelayer or concatLyaer in kernels/net/net.cl, that accepts multiple inputFeatureMap that current implementation doesn't support. You will need to have

  • different access pattern for readFmCache than other layers
  1. add the newly created LayerType in cpp/network.h

  2. add corresponding code for forward and Layer method in cpp/network.cpp.

    1. Layer method should process the multibranch information in JSON, the next*, prev* pointer may be changed to next**, prev**.

    2. The forward method is more complex than usual, since it needs multiple inputFeatureMap. You may need to

      • Transfer rest of those inputFeatureMap even in FPGA memory traffic reduction mode.
  3. Test/Debug on cpu/fpga