MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / push

Method push

Utility/Extensions/TensorExtension.py:223–229  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 2

test_circular_naiveFunction · 0.95
test_circular_randomFunction · 0.95

Calls 2

__write_scalar_batchMethod · 0.95
__pushMethod · 0.95

Tested by 2

test_circular_naiveFunction · 0.76
test_circular_randomFunction · 0.76