Created by: juncaipeng
[Cherry-pick] Fix bug in slice op when infer_flags is empyt, test=develop (#3625)