disable __setitem__ in static mode & add API paddle.static.setitem with dy2st strategy by zoooo0820 · Pull Request #53682 · PaddlePaddle/Paddle

and others added 8 commits

April 20, 2023 06:12

Aurelius84

@zoooo0820

@zoooo0820

@zoooo0820 zoooo0820 marked this pull request as ready for review

July 12, 2023 02:45

@zoooo0820

@zoooo0820 zoooo0820 changed the title [do not merge] test static setitem with dy2st disable __setitem__ in static mode & add API paddle.static.setitem with dy2st strategy

Jul 13, 2023

Aurelius84

jeff41404

jeff41404

jeff41404

jeff41404

jeff41404

jeff41404

@zoooo0820

jeff41404

XiaoguangHu01

cqulilujia pushed a commit to cqulilujia/Paddle that referenced this pull request

Jul 24, 2023
…th dy2st strategy (PaddlePaddle#53682)

* 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: Aurelius84 <zhangliujie@baidu.com>
Co-authored-by: NotHaozi <zhangmenghao@baidu.com>

wz1qqx pushed a commit to wz1qqx/Paddle that referenced this pull request

Jul 31, 2023
…th dy2st strategy (PaddlePaddle#53682)

* 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: Aurelius84 <zhangliujie@baidu.com>
Co-authored-by: NotHaozi <zhangmenghao@baidu.com>