You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code sample results in this error: (0): error 99999: Slang compilation aborted due to an exception of N5Slang13InternalErrorE: assert failure: Unhandled instruction
slang shader:
@KeKsBoTer:
This code looks like it is invoking bwd_diff multiple times on the same code. A double backwards pass is not currently well-supported.
Does your use-case require two reverse-mode derivative passes? The resulting code is usually very inefficient (atleast on the GPU).
For higher-order derivatives, it is (usually) much more efficient to use a bwd_diff over one or more fwd_diff (forward-mode derivative) calls to sweep the Hessian matrix row-by-row.
If you only need one reverse-mode pass, then there is no need to call bwd_diff again in gaussian_grad_bwd
The following code sample results in this error:
(0): error 99999: Slang compilation aborted due to an exception of N5Slang13InternalErrorE: assert failure: Unhandled instruction
slang shader:
compiled with slangtorch:
The issue is the statement
bwd_diff(foo)(x_diff,1.0);
slangtorch version: 1.2.6
The text was updated successfully, but these errors were encountered: