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
May 21, 2020
· 5 comments
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of softwareIRGenLLVM IR generation
SR-10697 IRGen assertion failure when partially applying a generic function to a type whose conformance is not available locally
TF-507 Revert SR-10697 workaround for SimpleRNNCell in swift-apis
Issue Description:
import _Differentiation
structRNNCellOutput<State:Differentiable>:Differentiable{varstate:State}structTensor<Shape,Element>{}// NOTE 1extensionTensor:Differentiablewhere Element:Differentiable{}// NOTE 2typealiasTensorR2<Element>=Tensor<SIMD2<Int>,Element>structGRUCell<Element:Differentiable>{typealiasInput=TensorR2<Element>typealiasOutput=RNNCellOutput<TensorR2<Element>>@differentiable// TRIGGERfunc callAsFunction(_ input:Input)->Output{returnOutput(state: input)}}// TRIGGER: The crash happens in `IRGenSILFunction::visitPartialApplyInst` for a function// cloned by the differentiation transform.// NOTE 1: The crash reproduces only if `Tensor` has the ~unused `Shape` generic parameter.// NOTE 2: The crash reproduces only if `Tensor`'s conformance to `Differentiable` is conditional.
IRGen crashes while visiting a partial_apply in a function cloned by the differentiation transform:
FYI @ematejska: this compiler crasher actually hasn't been fixed yet. The PR you linked reverts a specific workaround for a related crasher, but this crasher remains unfixed.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of softwareIRGenLLVM IR generation
Environment
swift-DEVELOPMENT-SNAPSHOT-2020-05-20-a
Additional Detail from JIRA
md5: 91dbff88c7312b05f62764755ce2b087
relates to:
SimpleRNNCell
in swift-apisIssue Description:
IRGen crashes while visiting a
partial_apply
in a function cloned by the differentiation transform:The text was updated successfully, but these errors were encountered: