zoukankan      html  css  js  c++  java
  • guide for intel dla

    1.net seen by dla
    net graph=subgraph1+subgraph2+subgraph3+...
    subgraph=conv+relu+norm+maxpool+fullyconn
    #every unit of subgraph is optional
    2.dla construct
    #         stream buffer(double buffer):        
    #|<-----------------buffer 1<------------------|
    #|<-----------------buffer 2<------------------|
    #|         stream pu(processing unit):         |
    #|---->conv->relu->norm->maxpool->fullyconn--->|
    #@ DLA Can Execute Many Neural Networks
    #@ DLA – Pipeline Parallelism of Subgraph Nodes
    #@ DLA – Sequentially Executes a Sequence of Subgraphs
    3.dla programming model
    3.1 buffer communicate
    transfer data includes buffer_image,buffer_conv_filter,buffer_conv_bias:
      _______       ___________       ___________                               ________  
     |       |<--->| ddr       |<--->|           |<--->buffer_image       <--->|        |   
     | host  |<--->| device    |<--->| subgraph0 |<--->buffer_conv_filter <--->| stream |   
     |       |<--->| buffer0~3 |<--->| subgraph1 |<--->buffer_conv_bias   <--->| buffer |    
     |_______|<--->|___________|<--->|___________|<--->buffer_conv_feature<--->|________|     

    3.1.1 communicate via streambuffer
    host<->ddr<->subgraph<->stream buffer(onchip, limited size)
    3.1.2 communicate via ddr
    host<->ddr<->subgraph
    3.2 buffer addressing
    3.2.1 manual addressing
    #@ The user chooses where the output goes: DDR or StreamBuffer.
    #@ The user provides ALL the addresses for DDR and StreamBuffer.
    3.2.2 auto addressing
    #@ The user chooses only which inputs/outputs go to DDR.
    #@ The user provides addresses only for DDR + subgraph data dependences.
       Intermediate data location/address between subgraphs is unspecified.
       DLA library determines the intermediate data addresses.
       Subgraphs may be sliced to fit in stream buffer.
    #@ There are limitations of the type of graphs that can be handled.
    #@
    #@

  • 相关阅读:
    pow()函数结果强制转化为int造成误差的分析
    warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    博客园鼠标点击特效代码
    codeblocks更改颜色主题
    codeblocks1712设置中文
    SQl
    项目中nodejs包高效升级插件npm-check-updates
    正则表达式的整理(将金钱数变成带有千分位)
    从一个数组中过滤出另外一个数组中相关字段相等的数据
    IONIC3 打包安卓apk详细过程(大量图文)
  • 原文地址:https://www.cnblogs.com/wordchao/p/8203973.html
Copyright © 2011-2022 走看看