diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-18 12:37:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 12:37:27 -0800 |
| commit | d58e08f8237a1888ceaad53402d534679ea83b1a (patch) | |
| tree | e66838e0dc31fc12ebd7c1acecbb5060e8808366 /tests/diagnostics/autodiff-data-flow.slang.expected | |
| parent | 0a050a439fa91b66f2020421d4fec3e60aed4112 (diff) | |
Data flow validation pass for diagnosing derivative loss. (#2523)
Diffstat (limited to 'tests/diagnostics/autodiff-data-flow.slang.expected')
| -rw-r--r-- | tests/diagnostics/autodiff-data-flow.slang.expected | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/diagnostics/autodiff-data-flow.slang.expected b/tests/diagnostics/autodiff-data-flow.slang.expected new file mode 100644 index 000000000..869ce42b3 --- /dev/null +++ b/tests/diagnostics/autodiff-data-flow.slang.expected @@ -0,0 +1,11 @@ +result code = -1 +standard error = { +tests/diagnostics/autodiff-data-flow.slang(15): error 41020: derivative cannot be propagated through call to non-differentiable function `nonDiff`, use 'no_diff' to clarify intention. + val = nonDiff(x * 2.0f); + ^ +tests/diagnostics/autodiff-data-flow.slang(22): error 41021: a differentiable function must have at least one differentiable output. +void g(float x) + ^ +} +standard output = { +} |
