push a batch of values into the CircularTensor. Will trigger a cache eviction for scalar writing buffer before pushing the value to ensure sequence consistency.
(self, value: torch.Tensor)
| 221 | ], dim=self.grow_dim) |
| 222 | |
| 223 | def push(self, value: torch.Tensor) -> None: |
| 224 | """ |
| 225 | push a batch of values into the CircularTensor. Will trigger a cache eviction |
| 226 | for scalar writing buffer before pushing the value to ensure sequence consistency. |
| 227 | """ |
| 228 | self.__write_scalar_batch() |
| 229 | self.__push(value) |
| 230 | |
| 231 | def __push(self, value: torch.Tensor) -> None: |
| 232 | """ |