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

Method max_dictionaries

olmo/preprocessing/preprocessor_utils.py:96–97  ·  view source on GitHub ↗
(*other: Dict[str, 'TensorSpec'])

Source from the content-addressed store, hash-verified

94 )
95
96 def max_dictionaries(*other: Dict[str, 'TensorSpec']):
97 return {k: TensorSpec.max(*(o[k] for o in other if k in o)) for k in get_all_keys(other)}
98
99
100@dataclasses.dataclass

Callers 3

get_output_shapesMethod · 0.80
get_output_shapesMethod · 0.80
get_output_shapesMethod · 0.80

Calls 2

get_all_keysFunction · 0.90
maxMethod · 0.80

Tested by

no test coverage detected