(state_dict, with_shape=True)
| 177 | |
| 178 | |
| 179 | def hash_state_dict_keys(state_dict, with_shape=True): |
| 180 | keys_str = convert_state_dict_keys_to_single_str(state_dict, with_shape=with_shape) |
| 181 | keys_str = keys_str.encode(encoding="UTF-8") |
| 182 | return hashlib.md5(keys_str).hexdigest() |
no test coverage detected