-
公开(公告)号:US20250165785A1
公开(公告)日:2025-05-22
申请号:US19030849
申请日:2025-01-17
Inventor: Guoping Long , Yuanfeng Zhong , Liying Li
Abstract: A method for training a neural network, and a related device are provided. The method may be applied to a scenario in which a neural network is trained in the field of artificial intelligence. When an Nth round of training of the neural network is being performed, a first computational graph may be obtained; and after it is determined that a first compiled code corresponding to the first computational graph has been stored in a system, the first compiled code may be directly executed, where the first compiled code is generated during execution of an Mth round of training of the neural network, and M is less than N. Because there is no need to perform an operation of converting the first computational graph into an intermediate representation, and obtaining a compiled code based on the intermediate representation, overheads of computer resources are reduced.