Commit 7ebf913
committed
[SYSTEMDS-3868] Fix missing function hoisting from if predicates
This patch adds the missing hoisting of DML function calls
(which always need to bind to variables) from basic if
predicates for convenience and in order to prevent
unexpected errors. Furthermore, this patch simplifies the
existing DML-bodied ampute() builtin by using this features
as well as call the existing sigmoid() instead of a custom one.1 parent 3ce16d0 commit 7ebf913
File tree
2 files changed
+11
-11
lines changed- scripts/builtin
- src/main/java/org/apache/sysds/parser
2 files changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
208 | | - | |
209 | | - | |
| 207 | + | |
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
| |||
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
285 | | - | |
| 283 | + | |
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
| |||
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 294 | | |
302 | 295 | | |
303 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
507 | 512 | | |
508 | 513 | | |
509 | 514 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
| 522 | + | |
| 523 | + | |
517 | 524 | | |
518 | 525 | | |
519 | 526 | | |
| |||
0 commit comments