Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/allenai/molmoact2
/ build
Method
build
experiments/olmo/preprocessing/preprocessor_utils.py:64–67 ·
view source on GitHub ↗
(cls, data)
Source
from the content-addressed store, hash-verified
62
63
@classmethod
64
def
build(cls, data):
65
if
data is None:
66
return
None
67
return
TensorSpec(data.shape, data.dtype)
68
69
@classmethod
70
def
get_spec(cls, src: TokenizedVisionData) -> Dict[str,
'TensorSpec'
]:
Callers
1
get_spec
Method · 0.45
Calls
1
TensorSpec
Class · 0.85
Tested by
no test coverage detected