-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
format python code in python directory #446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先merge了,然后回头再把 assert (
改一下吧
@@ -120,7 +132,7 @@ def __init__(self, data, keys): | |||
|
|||
def check_valid(self): | |||
for d in self.data: | |||
assert(len(d) == len(self.keys)) | |||
assert (len(d) == len(self.keys)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不用括号
self.label_set = label_set | ||
self.num_per_batch = 5000 | ||
assert(self.train_data.keys == self.test_data.keys) | ||
assert (self.train_data.keys == self.test_data.keys) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不用括号
assert(train_label_set == test_label_set) | ||
data_batcher = DataBatcher(train_data, test_data, | ||
train_label_set) | ||
assert (train_label_set == test_label_set) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不用括号
* adjust_beginners_structure * Update index.rst
* add_api_cn (PaddlePaddle#437) * add gpu benchmark page (PaddlePaddle#436) * add gpu benchmark * fix comments * add chinese link in gen_doc.py (PaddlePaddle#439) * modified gen_doc.py * Update gen_doc.py * update gen_doc.py * Update mobile doc (PaddlePaddle#440) * update_en_structure * update_Paddle_commitid * delete_DS * update_mobile_doc * Update book commit (PaddlePaddle#438) * update_en_structure * update_Paddle_commitid * delete_DS * update_book_commit_id * update_api_rst * Adjust structure of advanced usage (PaddlePaddle#442) * adjust_structure_of_advanced_usage * Update paddle_gpu_benchmark.md * adjust_toctree_hidden * fix_api_guide * Update index.rst * fix deadlinkes (PaddlePaddle#443) * add_toctree (PaddlePaddle#445) * adjust_beginners_structure (PaddlePaddle#446) * adjust_beginners_structure * Update index.rst * update install_doc for python3 (PaddlePaddle#418) * update install_doc for python3 * update python3.5+ info,test=develop * fix review, test=develop * fix_pic (PaddlePaddle#447)
* add_api_cn (PaddlePaddle#437) * add gpu benchmark page (PaddlePaddle#436) * add gpu benchmark * fix comments * add chinese link in gen_doc.py (PaddlePaddle#439) * modified gen_doc.py * Update gen_doc.py * update gen_doc.py * Update mobile doc (PaddlePaddle#440) * update_en_structure * update_Paddle_commitid * delete_DS * update_mobile_doc * Update book commit (PaddlePaddle#438) * update_en_structure * update_Paddle_commitid * delete_DS * update_book_commit_id * update_api_rst * Adjust structure of advanced usage (PaddlePaddle#442) * adjust_structure_of_advanced_usage * Update paddle_gpu_benchmark.md * adjust_toctree_hidden * fix_api_guide * Update index.rst * fix deadlinkes (PaddlePaddle#443) * add_toctree (PaddlePaddle#445) * adjust_beginners_structure (PaddlePaddle#446) * adjust_beginners_structure * Update index.rst * update install_doc for python3 (PaddlePaddle#418) * update install_doc for python3 * update python3.5+ info,test=develop * fix review, test=develop * fix_pic (PaddlePaddle#447) * delete en2zn link * update lod_tensor * 1207 1.english api reference links removed 2. formatted * update transpiler * update profilse_cn
* add_api_cn (PaddlePaddle#437) * add gpu benchmark page (PaddlePaddle#436) * add gpu benchmark * fix comments * add chinese link in gen_doc.py (PaddlePaddle#439) * modified gen_doc.py * Update gen_doc.py * update gen_doc.py * Update mobile doc (PaddlePaddle#440) * update_en_structure * update_Paddle_commitid * delete_DS * update_mobile_doc * Update book commit (PaddlePaddle#438) * update_en_structure * update_Paddle_commitid * delete_DS * update_book_commit_id * update_api_rst * Adjust structure of advanced usage (PaddlePaddle#442) * adjust_structure_of_advanced_usage * Update paddle_gpu_benchmark.md * adjust_toctree_hidden * fix_api_guide * Update index.rst * fix deadlinkes (PaddlePaddle#443) * add_toctree (PaddlePaddle#445) * adjust_beginners_structure (PaddlePaddle#446) * adjust_beginners_structure * Update index.rst * update install_doc for python3 (PaddlePaddle#418) * update install_doc for python3 * update python3.5+ info,test=develop * fix review, test=develop * fix_pic (PaddlePaddle#447) * delete en2zn link * update lod_tensor * 1207 1.english api reference links removed 2. formatted * update transpiler * update profilse_cn * Update docker-image instroduce, test=develop (PaddlePaddle#459) * fix_bug (PaddlePaddle#460) * [cp2dev]Add avx info 1.1 (PaddlePaddle#279) (PaddlePaddle#451) * Add avx info 1.1 (PaddlePaddle#279) * refine avx info representation * refine avx info representation * refine avx info representation * updatetoavx * fix_AVX * update_en_api (PaddlePaddle#461) * update api guides for cn (PaddlePaddle#462) * Update commit_id of Paddle (PaddlePaddle#463) * update_en_api * update_again * Fix bug (PaddlePaddle#465) * update_en_api * update_again * bug_fix * fix_2nd
* add_api_cn (PaddlePaddle#437) * add gpu benchmark page (PaddlePaddle#436) * add gpu benchmark * fix comments * add chinese link in gen_doc.py (PaddlePaddle#439) * modified gen_doc.py * Update gen_doc.py * update gen_doc.py * Update mobile doc (PaddlePaddle#440) * update_en_structure * update_Paddle_commitid * delete_DS * update_mobile_doc * Update book commit (PaddlePaddle#438) * update_en_structure * update_Paddle_commitid * delete_DS * update_book_commit_id * update_api_rst * Adjust structure of advanced usage (PaddlePaddle#442) * adjust_structure_of_advanced_usage * Update paddle_gpu_benchmark.md * adjust_toctree_hidden * fix_api_guide * Update index.rst * fix deadlinkes (PaddlePaddle#443) * add_toctree (PaddlePaddle#445) * adjust_beginners_structure (PaddlePaddle#446) * adjust_beginners_structure * Update index.rst * update install_doc for python3 (PaddlePaddle#418) * update install_doc for python3 * update python3.5+ info,test=develop * fix review, test=develop * fix_pic (PaddlePaddle#447) * delete en2zn link * update lod_tensor * 1207 1.english api reference links removed 2. formatted * update transpiler * update profilse_cn * Update docker-image instroduce, test=develop (PaddlePaddle#459) * fix_bug (PaddlePaddle#460) * [cp2dev]Add avx info 1.1 (PaddlePaddle#279) (PaddlePaddle#451) * Add avx info 1.1 (PaddlePaddle#279) * refine avx info representation * refine avx info representation * refine avx info representation * updatetoavx * fix_AVX * update_en_api (PaddlePaddle#461) * update api guides for cn (PaddlePaddle#462) * Update commit_id of Paddle (PaddlePaddle#463) * update_en_api * update_again * Fix bug (PaddlePaddle#465) * update_en_api * update_again * bug_fix * fix_2nd * add_release_note
* Update README.md * Update README.eng.md update ERNIE-GEN description * Update README.md 更新 ERNIE-GEN 中文描述 * Update README.md * Update README.eng.md Co-authored-by: kirayummy <shi.k.feng@gmail.com> Co-authored-by: Meiyim <chen_xuyi@outlook.com>
* Add the coarse builder for building a Program. * Replace CoarseBuilder with NetBuilder. Update codes as suggested by the reviewers. * Add CUDA Mem Set for SetRandData. * Remove the `symbolization` dir. * Call the method `Validate` immediately of a program after building.
* prelim. * add hf convertion fn. * mlp. * change name. * fix bug. * inverse permute. * change comment. * revert style changes. * fix. * add doc. * revert. * enable load safe. * fix safe load. * fix import. * fix typing-related lints. * fix ckpt loading logic. * make single gpu work. * test with parallel. * ckpt format. * enable pretrained state dict. * remove unused imports. * remove unused. * mark idea related.
use pep8 code style to format python code in python directory
#254