Created by: zhiqiu
When generating pruned_program_cache_key of Operator, we should not use its type but its id, since the types of different operators may be the same. Related #22474