Program compilation method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsDan Ghica, Le Tu, Mario Alvarez-Picallo, Lijuan Hai
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsDan Ghica, Le Tu, Mario Alvarez-Picallo, Lijuan Hai
Estimating the term…
A program compilation method and apparatus operate by: obtaining a first expression and a second expression of a program, where the first expression and the second expression generate a dependency relationship based on a first variable, and operation types of the first variable in the first expression and the second expression are different, and updating an operation type of the first variable; so that the first variable has no differential result or a result is zero after encountering a differential operation; separately processing the first expression and the second expression according to the updated operation type of the first variable, to obtain a corresponding derivative function expression; and; combining, based on a chain rule, derivative function expressions respectively corresponding to the first expression and the second expression, to obtain a compilation result of the program.
An automatic program compilation method comprising:
An automatic program compilation apparatus including:
A chip system comprising at least one processor, at least one memory, and an interface circuit, wherein the at least one memory, the interface circuit, and the at least one processor are interconnected, the at least one memory storing instructions that when executed by the at least one processor, cause the at least one processor to perform operations comprising:
A non-transitory computer-readable storage medium that stores program code for execution by a device, the program code being used to perform the operations comprising:
Dependencies are inferred from the claim text.