Error "Synchronize stream execution failed" Occurs When WarpAffineHiper or WarpPerspective Is Running

Symptom

The error "Synchronize stream execution failed" with error code 507014 (for example, Calling Function = aclrtSynchronizeStream, Code = 507014, Message = "ACL error, please refer to the document of CANN.") occurs when WarpAffineHiper or WarpPerspective is running.

Cause Analysis

The input shape is too large or the computing workload required by conversion matrix is too large, causing AI Core execution to time out.

Solution

Split the shape through data segmentation or change the conversion matrix to reduce the data volume.