会员体验
专利管家(专利管理)
工作空间(专利管理)
风险监控(情报监控)
数据分析(专利分析)
侵权分析(诉讼无效)
联系我们
交流群
官方交流:
QQ群: 891211   
微信请扫码    >>>
现在联系顾问~
热词
    • 89. 发明公开
    • METHOD FOR PRE-ALLOCATING MEMORY, THE ELECTRONIC DEVICE, AND THE COMPUTER PRODUCT
    • EP3819772A1
    • 2021-05-12
    • EP20206791.4
    • 2020-11-10
    • Nextvpu (Shanghai) Co., Ltd.
    • PANG, JunCAI, HaijiaoFENG, XinpengZHOU, Ji
    • G06F12/02G06F12/0873G06F12/0882G06N3/02G06N3/06
    • Provided are a method for pre-allocating memory, an electronic device, and a computer product. The method comprises: performing the following calculation operation for each successive layer of the neural network from a first layer of the neural network: attempting, for each output from a current layer, to obtain a memory block identifier from a list of idle memory block identifiers that is used to record idle memory block identifiers; if the memory block identifier is obtained, storing, as mapping relationship, an identifier of the output and the obtained memory block identifier into a mapping table of outputs and memory block identifiers, and deleting the memory block identifier from the list of idle memory block identifiers, wherein the mapping table of outputs and memory block identifiers is used to record an identifier of each output from the layer and the corresponding memory block identifier; or if the memory block identifier is not obtained, creating a new memory block identifier, storing, as mapping relationship, the identifier of the output and the new memory block identifier into the mapping table of outputs and memory block identifiers, and putting the new memory block identifier into a general list of memory block identifiers that is used to record all of the new memory block identifiers, for creating, according to the general list of memory block identifiers during the forward calculation for the neural network, a memory block required for the forward calculation for the neural network; and for each input to the current layer, putting, into the list of idle memory block identifiers, a memory block identifier corresponding to an output from a previous layer as the input if the output from the previous layer as the input is not used as an input to a subsequent layer of the current layer.