Commit 32c2717
Change the invoking method of settiem from numpy to set_value op when value isn't tensor (PaddlePaddle#35701)
* Change the invoking method of settiem from numpy to set_value op when value is not tensor
* fix the check logic for inplace in setitem
* fix the unittest problem caused by setitem doesn't support fp16
* modify some code format in setitem1 parent b04b36c commit 32c2717
File tree
6 files changed
+303
-165
lines changed- paddle/fluid
- operators
- pybind
- python/paddle
- fluid/tests/unittests
- nn/layer
6 files changed
+303
-165
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments