restore_from_dir# BasicVariantGenerator.restore_from_dir(dirpath: str)[source]# Restores the generator’s state from the newest checkpoint in dirpath. Parameters: dirpath (str) – Directory that holds the checkpoint file to restore from.