From 5adfd220adce31bff4a07957a32c9df36e171449 Mon Sep 17 00:00:00 2001 From: Joejiong Date: Wed, 13 May 2020 07:07:37 +0000 Subject: [PATCH] fix and re-tested for task test=develop --- PaddleNLP/pretrain_language_models/BERT/.run_ce.sh | 0 PaddleNLP/pretrain_language_models/BERT/README.md | 0 PaddleNLP/pretrain_language_models/BERT/__init__.py | 0 PaddleNLP/pretrain_language_models/BERT/_ce.py | 0 PaddleNLP/pretrain_language_models/BERT/batching.py | 0 .../pretrain_language_models/BERT/convert_params.py | 2 +- .../BERT/data/demo_config/bert_config.json | 0 .../BERT/data/demo_config/vocab.txt | 0 .../BERT/data/demo_wiki_tokens.txt | 0 .../BERT/data/train/demo_wiki_train.gz | Bin .../BERT/data/validation/demo_wiki_validation.gz | Bin .../pretrain_language_models/BERT/dist_utils.py | 0 .../BERT/inference/CMakeLists.txt | 0 .../BERT/inference/README.md | 0 .../BERT/inference/gen_demo_data.py | 0 .../BERT/inference/inference.cc | 0 .../pretrain_language_models/BERT/model/__init__.py | 0 .../pretrain_language_models/BERT/model/bert.py | 0 .../BERT/model/classifier.py | 0 .../BERT/model/transformer_encoder.py | 0 .../pretrain_language_models/BERT/optimization.py | 0 .../BERT/predict_classifier.py | 0 .../BERT/reader/__init__.py | 0 .../pretrain_language_models/BERT/reader/cls.py | 0 .../BERT/reader/pretraining.py | 0 .../pretrain_language_models/BERT/reader/squad.py | 0 .../pretrain_language_models/BERT/run_classifier.py | 0 .../pretrain_language_models/BERT/run_squad.py | 0 .../pretrain_language_models/BERT/tokenization.py | 0 PaddleNLP/pretrain_language_models/BERT/train.py | 0 .../pretrain_language_models/BERT/utils/__init__.py | 0 .../pretrain_language_models/BERT/utils/args.py | 0 .../pretrain_language_models/BERT/utils/cards.py | 0 .../pretrain_language_models/BERT/utils/fp16.py | 0 .../pretrain_language_models/BERT/utils/init.py | 0 35 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/.run_ce.sh mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/README.md mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/__init__.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/_ce.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/batching.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/convert_params.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/data/demo_config/bert_config.json mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/data/demo_config/vocab.txt mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/data/demo_wiki_tokens.txt mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/data/train/demo_wiki_train.gz mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/data/validation/demo_wiki_validation.gz mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/dist_utils.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/inference/CMakeLists.txt mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/inference/README.md mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/inference/gen_demo_data.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/inference/inference.cc mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/model/__init__.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/model/bert.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/model/classifier.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/model/transformer_encoder.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/optimization.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/predict_classifier.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/reader/__init__.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/reader/cls.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/reader/pretraining.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/reader/squad.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/run_classifier.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/run_squad.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/tokenization.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/train.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/utils/__init__.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/utils/args.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/utils/cards.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/utils/fp16.py mode change 100644 => 100755 PaddleNLP/pretrain_language_models/BERT/utils/init.py diff --git a/PaddleNLP/pretrain_language_models/BERT/.run_ce.sh b/PaddleNLP/pretrain_language_models/BERT/.run_ce.sh old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/README.md b/PaddleNLP/pretrain_language_models/BERT/README.md old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/__init__.py b/PaddleNLP/pretrain_language_models/BERT/__init__.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/_ce.py b/PaddleNLP/pretrain_language_models/BERT/_ce.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/batching.py b/PaddleNLP/pretrain_language_models/BERT/batching.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/convert_params.py b/PaddleNLP/pretrain_language_models/BERT/convert_params.py old mode 100644 new mode 100755 index c0f13720..8024c76a --- a/PaddleNLP/pretrain_language_models/BERT/convert_params.py +++ b/PaddleNLP/pretrain_language_models/BERT/convert_params.py @@ -183,7 +183,7 @@ def convert(args): param]).get_tensor().set(value, place) print(param, ' --> ', tf_fluid_param_name_map[param], ' ', value.shape) - fluid.save(model_path=args.fluid_params_dir, main_program=program) + fluid.save(model_path=args.fluid_params_dir, program=program) if __name__ == '__main__': diff --git a/PaddleNLP/pretrain_language_models/BERT/data/demo_config/bert_config.json b/PaddleNLP/pretrain_language_models/BERT/data/demo_config/bert_config.json old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/data/demo_config/vocab.txt b/PaddleNLP/pretrain_language_models/BERT/data/demo_config/vocab.txt old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/data/demo_wiki_tokens.txt b/PaddleNLP/pretrain_language_models/BERT/data/demo_wiki_tokens.txt old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/data/train/demo_wiki_train.gz b/PaddleNLP/pretrain_language_models/BERT/data/train/demo_wiki_train.gz old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/data/validation/demo_wiki_validation.gz b/PaddleNLP/pretrain_language_models/BERT/data/validation/demo_wiki_validation.gz old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/dist_utils.py b/PaddleNLP/pretrain_language_models/BERT/dist_utils.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/inference/CMakeLists.txt b/PaddleNLP/pretrain_language_models/BERT/inference/CMakeLists.txt old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/inference/README.md b/PaddleNLP/pretrain_language_models/BERT/inference/README.md old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/inference/gen_demo_data.py b/PaddleNLP/pretrain_language_models/BERT/inference/gen_demo_data.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/inference/inference.cc b/PaddleNLP/pretrain_language_models/BERT/inference/inference.cc old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/model/__init__.py b/PaddleNLP/pretrain_language_models/BERT/model/__init__.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/model/bert.py b/PaddleNLP/pretrain_language_models/BERT/model/bert.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/model/classifier.py b/PaddleNLP/pretrain_language_models/BERT/model/classifier.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/model/transformer_encoder.py b/PaddleNLP/pretrain_language_models/BERT/model/transformer_encoder.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/optimization.py b/PaddleNLP/pretrain_language_models/BERT/optimization.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/predict_classifier.py b/PaddleNLP/pretrain_language_models/BERT/predict_classifier.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/reader/__init__.py b/PaddleNLP/pretrain_language_models/BERT/reader/__init__.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/reader/cls.py b/PaddleNLP/pretrain_language_models/BERT/reader/cls.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/reader/pretraining.py b/PaddleNLP/pretrain_language_models/BERT/reader/pretraining.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/reader/squad.py b/PaddleNLP/pretrain_language_models/BERT/reader/squad.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/run_classifier.py b/PaddleNLP/pretrain_language_models/BERT/run_classifier.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/run_squad.py b/PaddleNLP/pretrain_language_models/BERT/run_squad.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/tokenization.py b/PaddleNLP/pretrain_language_models/BERT/tokenization.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/train.py b/PaddleNLP/pretrain_language_models/BERT/train.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/utils/__init__.py b/PaddleNLP/pretrain_language_models/BERT/utils/__init__.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/utils/args.py b/PaddleNLP/pretrain_language_models/BERT/utils/args.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/utils/cards.py b/PaddleNLP/pretrain_language_models/BERT/utils/cards.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/utils/fp16.py b/PaddleNLP/pretrain_language_models/BERT/utils/fp16.py old mode 100644 new mode 100755 diff --git a/PaddleNLP/pretrain_language_models/BERT/utils/init.py b/PaddleNLP/pretrain_language_models/BERT/utils/init.py old mode 100644 new mode 100755 -- GitLab