Set the input data and delete all the out-dated cache content.
(self, data: Sequence)
| 613 | read_env.close() |
| 614 | |
| 615 | def set_data(self, data: Sequence): |
| 616 | """ |
| 617 | Set the input data and delete all the out-dated cache content. |
| 618 | """ |
| 619 | self.close() |
| 620 | super().set_data(data=data) |
| 621 | self._read_env = self._fill_cache_start_reader(show_progress=self.progress) |
| 622 | |
| 623 | def _safe_serialize(self, val): |
| 624 | """Serialize the tensor/array `val` using the pickle protocol, and return its bytes object.""" |