Created by: liym27
add input type and dtype check for reshape op. enhance shape error messages for reshape op. chrry-pick PR20099