MCPcopy Create free account
hub / github.com/allenai/molmo2 / __mul__

Method __mul__

olmo/preprocessing/preprocessor_utils.py:63–65  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

61 return TensorSpec(tuple(shape), self.dtype)
62
63 def __mul__(self, other):
64 assert isinstance(other, int)
65 return TensorSpec(tuple(s*other for s in self.shape), dtype=self.dtype)
66
67 @classmethod
68 def build(cls, data):

Callers

nothing calls this directly

Calls 1

TensorSpecClass · 0.85

Tested by

no test coverage detected