diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2023-01-04 23:40:13 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 10:10:13 -0800 |
| commit | 7f64b2a9e3eb7aea13de550bd24c1aea7787c94b (patch) | |
| tree | 40afc50c9fb227b8728487403d3f9b712a1509b2 /source/slang/slang-ir.cpp | |
| parent | e8f977a00f5d131ec2d51d2a026d6452e8f762f0 (diff) | |
Multi-block reverse-mode autodiff (#2576)
* Initial multi-block implementation
* Implemented multi-block reverse-mode (without loops)
* Added logic to remove block-level decorations to avoid confusing IR simplification passes
* Fixed issues with block-level decorations during IR simplification by removing them prior to simplification.
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 33130cfb3..d8a8fb7c4 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -6623,6 +6623,10 @@ namespace Slang case kIROp_Reinterpret: case kIROp_GetNativePtr: return false; + + case kIROp_ForwardDifferentiate: + case kIROp_BackwardDifferentiate: + return false; } } |
