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

Method push_scalar

Utility/Extensions/TensorExtension.py:271–273  ·  view source on GitHub ↗
(self, value: int | float)

Source from the content-addressed store, hash-verified

269 assert write_to == value_size, "Must use up all the input values by this point."
270
271 def push_scalar(self, value: int | float) -> None:
272 assert self.scalar_array, "Can only push scalar to a scalar array (CircularTensor of 1-dimension)"
273 self.write_batch.append(value)

Callers 2

test_circular_scalarFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_circular_scalarFunction · 0.76