move trt_profile to TensorrtFuncState and reuse it (#7195)
use unordered_set instead of unordered_map to keep track of dynamic shape tensors with shape updates
fix: insert input_name in the set of input_names
move trt_profile to TensorrtFuncState and reuse it