(self, state_dict)
| 819 | ) |
| 820 | |
| 821 | def load_state_dict(self, state_dict): |
| 822 | if 'config' in state_dict: |
| 823 | self.config.update(ConfigDict(state_dict['config'])) |
| 824 | self._index = state_dict.get('index', self.config.example_index_at_start) |
| 825 | self._file_loc = state_dict.get('file_loc', self.config.start_seek_loc) |
| 826 | self._total_tokens = state_dict.get('total_tokens', self.config.tokens_count_at_start) |
| 827 | |
| 828 | @property |
| 829 | def seq_length(self): |
nothing calls this directly
no outgoing calls
no test coverage detected