Commit 3ef63ce
[mutable-arrays] ignroe InternalMutableArrayEffect in partial_eval has_effects
It's not really an effect from the point of view of partial eval; like
NamedAxisEffect, it's just a bit of info we're sneaking into the effect system
as a handy way of tracking it. But it should be ignored for the purpose of
deciding "is this code effectful".
(We're hoping that InternalMutableArrayEffect, and the effect system more
generally, and partial eval, are not long for this world...)
This is a follow-up on #33906
Co-authored-by: Sharad Vikram <sharadmv@google.com>1 parent 1c0bb94 commit 3ef63ce
File tree
3 files changed
+32
-2
lines changed- jax/_src
- interpreters
- tests
3 files changed
+32
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
| 849 | + | |
849 | 850 | | |
850 | 851 | | |
851 | 852 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | | - | |
| 1054 | + | |
| 1055 | + | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | 1058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1056 | 1084 | | |
1057 | 1085 | | |
1058 | 1086 | | |
| |||
0 commit comments