MCPcopy
hub / github.com/mosaicml/composer / _raise_missing_argument_exception

Function _raise_missing_argument_exception

composer/trainer/trainer.py:141–147  ·  view source on GitHub ↗
(arg_name: str)

Source from the content-addressed store, hash-verified

139
140
141def _raise_missing_argument_exception(arg_name: str):
142 raise ValueError((
143 f'{arg_name} is a required argument and must be specified when constructing the '
144 f'{Trainer.__name__} or when calling {Trainer.__name__}.{Trainer.fit.__name__}(). '
145 f'To fix, please specify `{arg_name}` via {Trainer.__name__}({arg_name}=...) or '
146 f'{Trainer.__name__}.{Trainer.fit.__name__}({arg_name}=...).'
147 ))
148
149
150def _scale_max_duration_by_ssr(

Callers 1

fitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected