- 04 8月, 2023 1 次提交
-
-
由 JYChen 提交于
* WIP: start writing combined indexing get * list/tuple/Variable * getitem 80% * add setitem * add some unittest for setitem * lazy import * fix some setitem error * fix advance indexing with decreasing axes; fix strided_slice input name * combine int-tensor getitem is ok (without boolean support & broadcast); add getitem unittest for static * add broadcast & parse bool tensor for __getitem * [change getitem] _getitem_impl_ to _getitem_static, not deleting the former one * refine new getitem; fix ut in variable/var_base * add __getitem__ ut in dygraph * re-dispatch getitem for Py/CPP; fix strided_slice decrease axes error in dygraph * fix ut; support tensor in slice * [change setitem] _setitem_impl_ to _setitem_static, not deleting the former one * remove some UT (for some, temporarily) * add IndexError to solve timeout problem in static-mode * 1.temply forbideen all-False bool-indexput; 2.setitem_static will return new variable * xpu uses old stratege * rename dy2st setitem ut to avoid same-name problem * dy2st for new combined index * ut case for combine-index with dy2st * open ut with all-false-bool setitem * remove useless doc and _getitem_impl_ * change static res * fix static xpu
-
- 31 7月, 2023 1 次提交
-
-
由 wanghuancoder 提交于
support stride
-
- 19 7月, 2023 1 次提交
-
-
由 JYChen 提交于
* add paddle.static.setitem * add some help doc * support setitem * support machanism * add more unittest * remove usless code * raise error in static setitem * fix d2s UT * remove static only for both-used code * fix bool set_value in static, fix set_value_op UT * fix unittests * [May case some error]: remove inplace-version check * add two test case for dy2st * fix function in vision * fix dy2st setitem support, refine UT case * fix slice in static_mode * add ParametersMap * remove pop * modify place * [fix]: variable is also a tensor * rewrite some ut & remove slicetransformer in dy2st * solve error in static-mode * fix ut * return a result for set_array_write * fix test_set_value_op_xpu * code is different in dynamic / static mode --------- Co-authored-by: NAurelius84 <zhangliujie@baidu.com> Co-authored-by: NNotHaozi <zhangmenghao@baidu.com>
-
- 12 6月, 2023 1 次提交
-
-
由 Nyakku Shigure 提交于
-
- 22 5月, 2023 1 次提交
-
-
由 Meteor Liu 提交于
* [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() * fixed cyclic reference that caused patial import * fixed bad change * fix bad import * fix bad import * fix bad import * fix ut failed caused by change in_dynamic_mode * fix ut failed caused by change in_dynamic_mode * fixed usage of in_dynamic_mode() or in_dygraph_mode() * revert python3 to python in .pre-commit-config.yaml * fix merge conflicts
-
- 08 5月, 2023 2 次提交
- 27 4月, 2023 1 次提交
-
-
由 JYChen 提交于
-
- 24 4月, 2023 1 次提交
-
-
由 JYChen 提交于
-
- 22 4月, 2023 1 次提交
-
-
由 zhouweiwei2014 提交于
-
- 21 4月, 2023 1 次提交
-
-
由 JYChen 提交于
* support 0-D output and 0-D as indice in __getitem__ * fix tests * fix inference and UT * add unittest for setitem * fix xpu test * fix xpu 0-d
-
- 14 4月, 2023 1 次提交
-
-
由 Feiyu Chan 提交于
1. modify set_value op, use Scalars to represent attr `values`, instead of a bunch of attributs of various types; (#52408) 2. add program converter and set_value op as an example, which provides the functionality to convert `paddle::framework::ProgramDesc` between old and new formats(the differences are mainly some operators with incompatible updates in the definition); 3. program version and operator version map now are always saved when serializing `paddle::framework::ProgramDesc` to identify the version; 3. provide an option `legacy_format=false` in serialization of `paddle::framework::ProgramDesc`, it decided whether to convert ProgramDesc back to a legacy format, which is compatible for paddle 2.4.2 or earlier versions to load and execute; 4. deserialization of `paddle::framework::ProgramDesc` is now automatically detecting whether the bytes it receives is in legacy format(contains any of the operators that has been incompatibly updated and have any attribute of type `Scalar`) and convert it to new format. But if you want a faithful deserialization without the automatic conversion, you can use protobuf's deserialization instead. Though it is not recommended, it can be used for the purpose of testing.
-
- 13 3月, 2023 1 次提交
-
-
由 JYChen 提交于
-
- 09 3月, 2023 1 次提交
-
-
由 zqw_1997 提交于
* move fluid.utils to paddle.utils.layers_utils * fix error * delete original fluid layers utils * remove import and old utils * remove more old utils import * change import path of fill_constant in the layers_utils.py * fix mistake * fix error * expose in __init__.py * for comment * when change the ref of func is_sequence, it should change to the root of is_sequence instead * for codecheck
-
- 15 2月, 2023 1 次提交
-
-
由 WangZhen 提交于
-
- 14 2月, 2023 1 次提交
-
-
由 mhy-666 提交于
-
- 12 12月, 2022 1 次提交
-
-
由 feifei-111 提交于
-
- 01 12月, 2022 2 次提交
-
-
由 Aurelius84 提交于
* [Fluid Clean]Migrate utils files and delete dygraph_to_static dir * fix setup.py.in * fix import * fix unittest * fix code style * fix unittest
-
由 heyanru 提交于
-
- 08 11月, 2022 1 次提交
-
-
由 xiongkun 提交于
* fix tensor_array slice bugs in _getitem_impl_ * fix when var is a paddle.Tensor * code format
-
- 23 10月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
* update config * re-blacken python code * temporarily disable date and diff_py_file * skip a format
-
- 11 10月, 2022 1 次提交
-
-
由 傅剑寒 提交于
* add fp16 data type for set_value * cancel flip modification * add fp16 dtype support for set_value
-
- 14 9月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
* trim trailing whitespace * fix `.cmake-format.py` * revert npu ut changes, avoid npu ci error
-
- 05 9月, 2022 1 次提交
-
-
由 Aurelius84 提交于
-
- 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
-
- 26 8月, 2022 1 次提交
-
-
由 wanghuancoder 提交于
-
- 02 8月, 2022 1 次提交
-
-
由 Weilong Wu 提交于
* [Eager] call final_state_slice under eager mode * rm useless comments * use eager final state instead intermidiate state * update fill_constant yaml * update fill_constant yaml * modify wrapped_infermeta_gen logic to fix special case * fix slice in manipulation * use fill_constant_ * modify slice infermeta * rm final_state_conv2d * use final_state_slice * use final_state_slice only * polish slice, use final state * add paddle_throw for SplitInferMeta * rm fill_constant_ temply * recover array_equal, not allclose * recover original code
-
- 05 6月, 2022 1 次提交
-
-
由 Sing_chan 提交于
* use yapf to format all python file * yapf exclude two unittests file for they rely on writing and reading file, and format will break them * disable diff_py_file because too many diff files cause command following failed
-
- 07 5月, 2022 1 次提交
-
-
由 zyfncg 提交于
-
- 13 4月, 2022 1 次提交
-
-
由 zyfncg 提交于
* adjust the slice end in getitem * fix bug * fix bug * fix bug * recover start change
-
- 04 4月, 2022 1 次提交
-
-
由 FlyingQianMM 提交于
* support getitem when index is a all-false bool tensor * use cond to replace if * add static_graph geitem unit test when index is a bool tensor
-
- 30 3月, 2022 1 次提交
-
-
由 pangyoki 提交于
* suppor inplace in tensor_method_setitem * delete bump_inplace_version * optimize inplace unittest * fix * fix setitem bug * update eager_generator * optimize inplace unittest * little change
-
- 25 3月, 2022 2 次提交
-
-
由 Jiabin Yang 提交于
* refactor eager flags * fix flags error when we switch from eager to dygraph * fix ci problem * fix ci * fix ci * merge develop and fix code style * merge develop and fix code style * fix op test error * fix op test error * fix op test error * fix op test error * fix op test error * merge develop
-
由 FlyingQianMM 提交于
* support get_item where the index is a bool scalar tensor * add unittests for supporting get_item where the index is a bool scalar tensor
-
- 23 3月, 2022 1 次提交
-
-
由 wanghuancoder 提交于
* fix some slice bug, test=develop * eager slice, test=develop * eager slice, test=develop * refine, test=develop * refine, test=develop * fix bug, test=develop * refine, test=develop * rename function name, test=develop
-
- 21 12月, 2021 1 次提交
-
-
由 zyfncg 提交于
* add inplace_map for trace_op in pybind * fix inplace problem of setitem * refactor the param format of trace_op Co-authored-by: Npangyoki <pangyoki@126.com>
-
- 01 12月, 2021 1 次提交
-
-
由 zyfncg 提交于
-
- 22 11月, 2021 1 次提交
-
-
由 zyfncg 提交于
-
- 15 9月, 2021 1 次提交
-
-
由 WeiXin 提交于
* support numpy.ndarray index. * polish code.
-
- 01 9月, 2021 1 次提交
-
-
由 zyfncg 提交于
* Support getitem by Bool index * delete some debug info of bool index * support the case that the shape of bool index is different from indexed tensor * support setitem by bool index * add the unittest for throwing exception * merge conflict * add check for int tensor when index is bool
-