fix buf in convert_pt_chkpt_to_tf2

This commit is contained in:
VictorSanh
2019-10-02 19:03:32 -04:00
committed by Victor SANH
parent 2a91f6071f
commit f1f23ad171

View File

@@ -228,6 +228,7 @@ if __name__ == "__main__":
convert_all_pt_checkpoints_to_tf(args.model_type.lower() if args.model_type is not None else None,
args.tf_dump_path,
model_shortcut_names_or_path=[args.pytorch_checkpoint_path] if args.pytorch_checkpoint_path is not None else None,
config_shortcut_names_or_path=[args.config_file] if args.config_file is not None else None,
compare_with_pt_model=args.compare_with_pt_model,
use_cached_models=args.use_cached_models,
only_convert_finetuned_models=args.only_convert_finetuned_models)