- 23 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
-
- 20 9月, 2022 1 次提交
-
-
由 zhangbo9674 提交于
* add scope cache & reuse * add gc scope for end of each train step * del scope reuse for jit * refine code * test
-
- 19 9月, 2022 1 次提交
-
-
由 feifei-111 提交于
* [dy2static] support user to use decorator in their program (#45768) * support deco * fix deco ast type * arg_str * 1 * support callable deco * code style * codestyle * test_error * fix decos in another file * recover conflict codes * [BugFix] fixed a bug in decorator transformer, it can not analyze decorator with params correctly (#46055) * fix deco call * add raise * add test * add warn, fix paddle api * fix error type * fix coverage
-
- 15 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
[ Dy2Static ] Fix bugs when select inputs meeting different shape or undefined-var (#45916) (#46020) * fix select_input with different shape errors: 1. select_input_with_buildin_type directly return non-undefinedvar branch when meeting undefined var 2. the output shape of select_input is inferred from inputs. * reverse the logic in select_input
-
- 09 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
* convert_call support staticmethod for class. * while support for python container. It is convenient to convert more dynamic graph codes into static graphs. * cond support python container * add unittest for staticmethod convert_call * fix bugs * add unittest for item interface * fix bugs * change to np.testing.assert_allclose * code format * fix comments. * code format
-
- 08 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
* 1. fix non-local error while dealing push_pop names 2. escape "'" in push_pop_names to avoid syntax errors. 3. unified the non-local stmt creation processes in getter and setter. 4. split the nonlocal_names and getter/setter names. * fix bugs * 1. revert setter and getter, push_pop_names must have non-local * fix bugs. * code format
-
- 06 9月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Filter UserWarings while @to_static * only filter DeprecationWarning * fix unittest
-
- 02 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
* 1. make list transformer into jit form. 2. fix some bugs in tensor_array, such as append. 3. enhance the function analysis visitor to recognize push/pop. 4. add setter/getter helper to deal with 2+ name sets. * fix ci errors: 1. add to_tensor_array logic in convert_cond 2. fix IfExpr error. 3. fix erros while return_names or push_pop_names is None 4. fix slice error in a[i]=1 where a is tensor_array 5. add pop interface in Variable
-
- 31 8月, 2022 1 次提交
-
-
由 xiongkun 提交于
-
- 29 8月, 2022 2 次提交
-
-
由 zhangbo9674 提交于
* add interpretercore * refine backward program id * add code * refine program * refine code * create forward/backward_program by prog2graph2prog method * test, do not care * refine code * refine code * refine code * test, do not care * add interpretorcore * add scope * refine scope create method * add jit for new_exe * solve conflict * delete unused code * polish code * polish code * refine scope in inplace * refine for datatransfer * refine _rebuild_from_desc * refine control eager deletion attr * refine used_for_jit * refine jit for infer * op size0 use ori program * polish code * refine jit * refine run_program_op ut * refine inplace * refine control * refine graph helper * refine control * refine inplace * refine buffer_share_inplace_pass * polish code * polish code * refine usage for compilerProgram * refine control * test * test core cache * refine code * refine io.py * increase test_seq2seq timeout * refine convert program * refine interpretercore_cache release * delete buildinplace * refine partial_program && io * refine code for io * test * test * test
-
由 xiongkun 提交于
* unify the size and size() by jst * fix bugs * bug fix. * fix bugs * change all_close -> np.testing.assert_allclose
-
- 26 8月, 2022 2 次提交
-
-
由 wanghuancoder 提交于
-
由 xiongkun 提交于
* while support for python container. It is convenient to convert more dynamic graph codes into static graphs. * cond support python container * 1. make select_input output shape = input[1] 2. add warning in while_loop risky assign * fix 2 problem in GPT export: 1. a bug in while_op no_need_copy_var, which causes gpu memory leakage 2. a bug in undefined_var where the stop_gradient should be False. * change name by code review * format
-
- 24 8月, 2022 1 次提交
-
-
由 xiongkun 提交于
* while support for python container. It is convenient to convert more dynamic graph codes into static graphs. * cond support python container
-
- 19 8月, 2022 2 次提交
- 18 8月, 2022 1 次提交
-
-
由 feifei-111 提交于
* fix_shape
-
- 10 8月, 2022 1 次提交
-
-
由 xiongkun 提交于
* 1. add prepare_gradient_aggregation in PartialProgramLayer * 1. draft * fix ci problem
-
- 09 8月, 2022 1 次提交
-
-
由 WangZhen 提交于
* Fix abnormal format of message when raise KeyError in Dy2St * Format code * Format code * Add UT * Rename method
-
- 03 8月, 2022 1 次提交
-
-
由 xiongkun 提交于
* release the convert_len() * fix bugs * fix bugs * fix start error. * when shape==0, we should also call paddle.shape
-
- 02 8月, 2022 2 次提交
- 21 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* fix the outputs of net is x,x * add unittest for duplicate output * fix * fix _infer_program use the original program not the amp program. * get _***program_id back and avoid duplicate cache ing * fix
-
- 14 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* fix the outputs of net is x,x * add unittest for duplicate output * fix
-
- 12 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* change NameVisitor to FunctionScopeAnalysis * polish the logic of undefined var in while_loop. create vars after body execution * replace old NameVisitor in while and fix all CI * Togather with CreateVariableTransformer * add create_variable_transformer * fix bugs * merge * fix some error, TODO: ForNodePreTransform ahead * merge for unite PR * fix conflict with base_transformer PR * fix ci errors, fix [for i in range()] error * fix according to code review
-
- 08 7月, 2022 1 次提交
-
-
由 WangZhen 提交于
* Polish visit function in transformer * Call generic_visit first in visit_While/For * Remove comments * Polish utils.py, move some transformer to base_transformer
-
- 06 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* add support for control flow block analysis * move FunctionNameLivenessAnalysis into utils * pass test_ifelse.py * remove duplicate data_layer_not_check * pass the test_ifelse.py * fix unittest error . * fix all ci error in first version * temporay disable CreateVariableTransformer * fix ci errors * fix function name liveness analysis bugs * modifty def cond * fix * fix ci error - v2 * fix by code review * change return_name_ids -> return_name
-
- 05 7月, 2022 1 次提交
-
-
由 WangZhen 提交于
* Add BaseTransformer for dy2st error message * Fix return_transformer error * Polish dy2st error info in runtime * Fix UT error * Polish runtime error code
-
- 01 7月, 2022 3 次提交
-
-
由 WangZhen 提交于
-
由 Aurelius84 提交于
* [Dy2Stat]Polish break/continue statement transformer logic
-
由 Aurelius84 提交于
* [Dy2Stat]Enhance nonlocal machanism while returning single var * [Dy2Stat]Enhance nonlocal machanism while returning single var
-
- 30 6月, 2022 2 次提交
- 28 6月, 2022 2 次提交
-
-
由 Aurelius84 提交于
-
由 Aurelius84 提交于
* [Dy2Stat]Polish all API name of _jst
-
- 27 6月, 2022 2 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Refactor convert_shape transformer logic * clean usless unittest
-
由 Aurelius84 提交于
-
- 24 6月, 2022 1 次提交
-
-
由 xiongkun 提交于
* add closure analysis for control flow and add some unittest * finetune the design of FunctionScopeVisitor * fix * fix python check * fix code by code review
-
- 23 6月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Support nonlocal mechanism in IF ast transformer * support prune return vars in cond * fix unittest * fix unittest * fix static check
-
- 22 6月, 2022 1 次提交
-
-
由 xiongkun 提交于
因此将N次前向共用一个 vec scope 换为了N次前向分别使用自己的一个vecscope
-