- 01 7月, 2020 1 次提交
-
-
由 Zhou Wei 提交于
* add new api: optimizer.set_lr, test=develop * add API doc and example code for optimizer.set_lr,test=develop * add API doc and example code for optimizer.set_lr,test=develop * Modified doc to :api_attr: imperative,test=develop
-
- 30 6月, 2020 6 次提交
-
-
由 Kaipeng Deng 提交于
-
由 Huihuang Zheng 提交于
Support Various-Length Return Grammar in Dy2stat. This PR is a follow-up of https://github.com/PaddlePaddle/Paddle/pull/25176 . The basic idea is putting no-value placeholder variables at `return` statement to make all `return` statement have same length, after that the static graph can have fixed fetch output (code at return_transformer.py). Then remove those no-value placeholder when we finally return dygraph result (code at partial_program.py). However, various length return in Bert model is still not supported. The dy2stat can change the code as I wish but some ops which check shape at compile time (e.g. Reshape, MatMul) will throw error because of the no-value-placeholder may not have the required shape. Is this a matter? To me, those no-value placeholder will be replaced as really values meeting shape requirements at run time, so I think the solution should be some way to do the compile-time checking. By the way, every time when we have dynamic shape, it often causes problem in dy2stat. We should find a way to handle it in the future. Fixing various return in Bert is my TODO thing and I will also find some other existing models for verification.
-
由 Aurelius84 提交于
* fix GPU diff test=develop * refine code test=develop
-
由 123malin 提交于
-
由 tangwei12 提交于
-
由 Tao Luo 提交于
* add test_parallel_executor_profiler.py test=develop * set exec_strategy.num_threads=1 * skip check_profile_result * add TODO for test_profiler test=develop
-
- 29 6月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* support to save varBase created in __init__ test=develop * polish code test=develop * refine to_static_var test=develop * refine warning test=develop * add unitteset for to_static_var test=develop * fix logger test=develop * polish buffers en doc test=develop * fix param_guard test=develop * refine en doc test=develop
-
由 Huihuang Zheng 提交于
This PR added basic support for 'return' grammar in dy2stat. It supports the control flow of 'return'. The basics idea is using a return value variable to store the early return statements and boolean state variables with if-else to skip the statements after the return statements. **This PR is very basic support. There are some corner cases I didn't develop/test**. For example, 'return None', 'return different length of variables', 'return non-tensor and tensor together', 'no return statement'. **These corner cases will be done in my next PRs**. Target date is this week. **Note**: 1. for the unit test, I changed test_program_translator.py because the StaticCode of `dyfunc_with_if_else` will change. To guarantee the correctness of `dyfunc_with_if_else`, I also run it in `TestRecursiveReturn` in test_return.py. 2. I commented the early return code in bert_dygraph_model.py because 'return different length of variables' is unsupported now. I also know that there are some other models used early return and we didn't enable it in the unit test. I will add support for it in next PRs and then re-enable those tests.
-
- 28 6月, 2020 1 次提交
-
-
由 Aurelius84 提交于
-
- 26 6月, 2020 1 次提交
-
-
由 liu zhengxi 提交于
* fix beam_search infershape, test=develop * fix beam search op unittest, test=develop
-
- 25 6月, 2020 1 次提交
-
-
由 chalsliu 提交于
-
- 24 6月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* add cycle_gan_model * align train test=develop * modify image_size into 64 to avoid TimeOut test=develop * TODO in GPU test=develop
-
由 FDInSky 提交于
* test=develop fix conv3d_transpose_test error
-
- 23 6月, 2020 1 次提交
-
-
由 Tao Luo 提交于
test=develop
-
- 22 6月, 2020 1 次提交
-
-
由 Tao Luo 提交于
-
- 19 6月, 2020 4 次提交
-
-
由 iducn 提交于
-
由 Aurelius84 提交于
* Refine caches of converting func test=develop * fix if statement test=develop * refine cache code test=develop * rm unuse import statement test=develop * Polish code comment test=develop
-
由 Aurelius84 提交于
* Refine check_type for @declarative test=develop
-
由 Chen Weihang 提交于
-
- 18 6月, 2020 4 次提交
-
-
由 Zhou Wei 提交于
* add new api (set_global_initializer/reset_global_initializer),test=develop * add new api (set_global_initializer/reset_global_initializer),test=develop * fix doc and example code of set_global_initializer,test=develop
-
由 Chen Weihang 提交于
* add for iter var list, test=develop * add enumerate unittest, test=develop
-
由 liym27 提交于
-
由 Jacek Czaja 提交于
* Start implementing int8 eltwise add test=develop * - Fix to Michal PR * - Fix test=develop * - Lint fixes test=develop * - Added checking if elementwise_mul can be used test=develop * - Added attribs to skip_attrs_set test=develop * - Improved broadcasting test=develop - fixes to compilation - fix - fix - Lint fixes test=develop * - removed redundant condition test=develop Co-authored-by: NMichal Gallus <michal.gallus@intel.com>
-
- 17 6月, 2020 2 次提交
-
-
由 liym27 提交于
* The arg of append() can be not Tensor temporarily. * Add Seq2Seq as ProgramTranslator Unit Test. * set dtype of vocab_size_tensor to int64 to pass Windows-CI.
-
由 Leo Chen 提交于
* fix bug of prelu when rank not equal 4, test=develop * fix prelu inference, test=develop * fix api, test=develop * fix shape when mode is chennel, test=develop * remove debug code, test=develop * add unittest, test=develop
-
- 16 6月, 2020 4 次提交
-
-
由 Huihuang Zheng 提交于
As the title
-
由 hutuxian 提交于
* Add a StatValue class in the backend to represent a stat. * Add a singleton StatRegistry to maintain the collection of stats. * For the sake of code neatness, we only support type of int and float, which can cover most of the scenarios.
-
由 Huihuang Zheng 提交于
Some big models can timeout on Windows CPU machine. I added some timeout properties.
-
由 Leo Chen 提交于
-
- 15 6月, 2020 2 次提交
-
-
由 Yiqun Liu 提交于
-
由 Huihuang Zheng 提交于
Add TSM as ProgramTranslator Unit Test. The TSM code is referred from PaddlePaddle/models#4229
-
- 12 6月, 2020 3 次提交
-
-
由 Aurelius84 提交于
* add MobileNet unittest test=develop * fix cudnn random test=develop
-
由 tangwei12 提交于
* fix sync barrier with barrier monitor, test=develop
-
由 hong 提交于
* enable load_program_state run in imperative mode; test=develop * remove useless code; test=develop
-
- 11 6月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Static]Convert var.shape stmt and Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not (#24911) * Support int and long: int or long -> six.integer_types. * Modify test_tensor_shape: fix bug and modify comment. * Support convert_var_shape to convert var.shape stmt * Modify code in ifelse_simple_func.py because don't support return non-Tensor in Tensor-dependent 'if' stament currently. * Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not. test=develop
-
- 10 6月, 2020 2 次提交
-
-
由 liu zhengxi 提交于
-
由 Huihuang Zheng 提交于
[Dy2stat] decrease the batch size to decrease GPU usage.
-
- 09 6月, 2020 2 次提交
-
-
由 liym27 提交于
* Move function 'convert_len' to file convert_operators.py * Support that for statements are transformed to while statements. * Fix bug: raise None -> return None. * Support variable loaded and created in loop. * Use int64 in Py2 and Py3 in function to_static_variable.
-
由 wawltor 提交于
Fix the bug for elementwise_div op, when the first var is scalar; Use the shape 1 replace the -1 in shape.
-