• Shucai Xiao's avatar
    Loop operator (#853) · a275f590
    Shucai Xiao authored
    
    
    Add Loop operator for opset version 13.
    Notes: 1) Default max iteration number is 10 if no max iteration number is provided
    2) To change the max iter number, a user can set the max_loop_iterations in the onnx_option struct when parsing a model.
    3) The returned shape of the scan output is from the max_loop_iterations even the actual loop num is less than that. This issue also applies to other operators like NonZero and NonMaxSuppression. A issue #948 is created to track this and to be resolved later.
    Co-authored-by: default avatarPaul <pfultz2@yahoo.com>
    Co-authored-by: default avatarmvermeulen <5479696+mvermeulen@users.noreply.github.com>
    a275f590
lowering.cpp 29.2 KB