rxn.onmt_utils.model_introspection.get_model_seed

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

Get the value of the seed for the given model checkpoint.

Parameters

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

Return type

int