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

Method build

olmo/preprocessing/preprocessor_utils.py:68–71  ·  view source on GitHub ↗
(cls, data)

Source from the content-addressed store, hash-verified

66
67 @classmethod
68 def build(cls, data):
69 if data is None:
70 return None
71 return TensorSpec(data.shape, data.dtype)
72
73 @classmethod
74 def get_spec(cls, src: TokenizedVisionData) -> Dict[str, 'TensorSpec']:

Callers 1

get_specMethod · 0.45

Calls 1

TensorSpecClass · 0.85

Tested by

no test coverage detected