This reverts commit c5b6be045f. ### Description Revert ### Motivation and Context This needs simpler and more robust approach
c5b6be045f