diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-14 09:31:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 09:31:51 -0700 |
| commit | e291f60c6b083eaa74aed5307a6e9461274c1642 (patch) | |
| tree | bde9b45a9e09ebbe173fae1821237b258a9ff800 /source/slang/slang-ir-validate.cpp | |
| parent | a911ca6e06ce41e403b80fe6054162393491c8ac (diff) | |
Support `fwd_diff(bwd_diff(f))`. (#2697)
* Support `fwd_diff(bwd_diff(f))`.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-validate.cpp')
| -rw-r--r-- | source/slang/slang-ir-validate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ir-validate.cpp b/source/slang/slang-ir-validate.cpp index d5c0aa432..55e0f0168 100644 --- a/source/slang/slang-ir-validate.cpp +++ b/source/slang/slang-ir-validate.cpp @@ -208,6 +208,12 @@ namespace Slang if (allInGlobalScope) return; + // Allow exceptions. + switch (inst->getOp()) + { + case kIROp_DifferentiableTypeDictionaryItem: + return; + } // // We failed to find `operandParent` while walking the ancestors of `inst`, // so something had gone wrong. |
