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

Method __mul__

experiments/olmo/preprocessing/preprocessor_utils.py:59–61  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

57 return TensorSpec(tuple(shape), self.dtype)
58
59 def __mul__(self, other):
60 assert isinstance(other, int)
61 return TensorSpec(tuple(s*other for s in self.shape), dtype=self.dtype)
62
63 @classmethod
64 def build(cls, data):

Callers

nothing calls this directly

Calls 1

TensorSpecClass · 0.85

Tested by

no test coverage detected