Searching loop transformation schedule for deep learning model
Патент · US A1
Полный текст
A compiler may identify tensor operations in a deep learning model. For each tensor operation, the compiler may generate schedules arranged in a hierarchical structure. The compiler may select one or more schedules from the lowest level of the hierarchical structure by inputting the schedules at the lowest level and optionally other data into a trained model. The trained model may output a selection of one or more schedules. After selecting schedules for the tensor operations, the compiler may generate a graph including edges representing connections between the schedules. Each edge connects a schedule for a producing tensor operation to a schedule for a consuming tensor operation. The compiler may determine a weight for each edge and select a path based on the weights of the edges. The schedules along the path constitute a combined schedule to be used to transform loops of the deep learning model. WO