Patent ID: 11941532
Assignee: ZHEJIANG LAB
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. The method for adapting a deep learning framework to a hardware device based on a unified backend engine according to claim 1, wherein the specific steps of memory distribution in the step S6 are as follows:
S61: creating a memory distributor for distributing a memory for the unified backend engine at a framework end, and adding an interface for filling the memory, wherein the memory distributor is responsible for constructing the memory required by the backend engine at the framework end and transmitting the memory to the unified backend engine;
S62: applying the memory of the memory distributor at the framework end according to a memory order required by the backend engine, and the interface of the memory distributor for filling the memory copying the memory of the unified backend engine to the framework end according to an original memory order when the hardware device finishes running, so as to implement one-to-one mapping between a memory order applied by the framework for the unified backend engine and the memory order required by the unified backend engine.