Update the replacement data position in the total data.
(self)
| 1119 | warnings.warn(f"input data can't be shuffled in SmartCacheDataset with numpy.random.shuffle(): {e}.") |
| 1120 | |
| 1121 | def _compute_data_idx(self) -> None: |
| 1122 | """ |
| 1123 | Update the replacement data position in the total data. |
| 1124 | |
| 1125 | """ |
| 1126 | for i in range(self._replace_num): |
| 1127 | pos: int = self._start_pos + self.cache_num + i |
| 1128 | if pos >= self._total_num: |
| 1129 | pos -= self._total_num |
| 1130 | self._replace_data_idx[i] = pos |
| 1131 | |
| 1132 | def is_started(self): |
| 1133 | """ |
no outgoing calls
no test coverage detected