Apparatus, method, system, and storage medium for deep learning operation on workloads with dynamic shapes
Патент · US A1
Полный текст
The application provides an apparatus, method, system and storage medium for a deep learning operation on workloads with dynamic shapes. The apparatus includes interface circuitry configured to obtain a profile of tensor shapes; and processing circuitry coupled to the interface circuitry and configured to: infer, from the profile of tensor shapes, a profile of parallel index ranges and a probability for each of the parallel index ranges; determine a set of candidate blocking factors for each of the parallel index ranges; and generate a kernel for the deep learning operation under each of the candidate blocking factors, the kernel for the operation comprising a parallel outer loop and an inner loop with a single-core kernel implementing a part of the deep learning operation working on corresponding parts of the workloads. (FIG. 1 )