(self, idx, new_data)
| 269 | return tensor |
| 270 | |
| 271 | def update_data(self, idx, new_data): |
| 272 | if self.off_load_to_disk: |
| 273 | filepath = self._get_file_path(idx) |
| 274 | torch.save(new_data.to(self.dtype), filepath) |
| 275 | else: |
| 276 | self.data[idx] = new_data |
no test coverage detected