(string, prefix)
| 125 | |
| 126 | |
| 127 | def remove_prefix_string(string, prefix): |
| 128 | assert string.startswith(prefix), "can not remove prefix." |
| 129 | return string[len(prefix):] |
| 130 | |
| 131 | |
| 132 | def remove_prefix_from_state_dict(state_dict, prefix): |
no outgoing calls
no test coverage detected