CPC G06F 8/443 (2013.01) [G06N 3/04 (2013.01); G06N 3/063 (2013.01); G06N 3/08 (2013.01); G06N 3/105 (2013.01)] | 18 Claims |
1. A method for generating heterogenous platform code comprising:
obtaining a neural network model, wherein the neural network model is programed to run on at least one platform;
obtaining an initial intermediate representation (IR) code by encoding the neural network model, and obtaining a target IR code by adding decorations to the initial IR code based on a target platform; and
outputting an executable code optimized to run on the target platform by decoding the target IR code, wherein outputting the executable code optimized to run on the target platform by decoding the target IR code comprises:
obtaining multiple graph objects based on a scan of the target IR code, and
outputting the executable code based on a traverse of the multiple graph objects.
|