rxn.onmt_utils.model_introspection.get_model_opt

rxn.onmt_utils.model_introspection.get_model_opt(model_path)[source]

Get the args (“opt”) of rnn_size for the given model checkpoint.

Parameters

model_path (Union[str, PathLike]) – model checkpoint, such as model_step_100000.pt.

Return type

Namespace