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
dan-zheng opened this issue
Jul 31, 2020
· 1 comment
Labels
AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
import _Differentiation
classClass<T:Differentiable>:Differentiable{varx:Tletbool:Bool= true
init(_ x:T){self.x = x
}}@differentiablefunc foo<T:Differentiable>(_ c:Class<T>)->Class<T>{
if c.bool {return c
}return c
}
The crash occurs because basic block adjoint value propagation logic in PullbackCloner::Implementation::visitSILBasicBlock assumes that active bb arguments have loadable TangentVector types, not address-only TangentVector types.
The text was updated successfully, but these errors were encountered:
AutoDiffbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Additional Detail from JIRA
md5: bb1c156db6a6cef9587ca5c447c5cd8c
Issue Description:
Crash:
The crash occurs because basic block adjoint value propagation logic in
PullbackCloner::Implementation::visitSILBasicBlock
assumes that active bb arguments have loadable TangentVector types, not address-only TangentVector types.The text was updated successfully, but these errors were encountered: