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.
    #@
    #@

  • 相关阅读:
    “神一般存在”的印度理工学院到底有多牛?
    MobaXterm
    VC Debug和Release区别
    Mock 模拟测试简介及 Mockito 使用入门
    JUnit单元测试教程(翻译自Java Code Geeks)
    JUnit4单元测试入门教程
    单元测试利器 JUnit 4
    深入探索 JUnit 4
    JUnit
    Java泛型之类型擦除
  • 原文地址:https://www.cnblogs.com/wordchao/p/8203973.html
Copyright © 2011-2022 走看看