[SR-13153] @derivative
attribute ambiguous original declaration errors
#54265
Labels
AutoDiff
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Additional Detail from JIRA
md5: 7ea5fa61fb651909a76ff92dae522234
Parent-Task:
@derivative
and@transpose
type-checking diagnostic improvementsblocks:
relates to:
@derivative
attribute support qualified original declaration namesIssue Description:
@derivative(of🙂
is quite not at feature parity with@differentiable(jvp:vjp🙂
due to@derivative(of🙂
original function lookup ambiguity errors.The current workaround is to use
@differentiable(jvp:vjp🙂
on the original function for derivative registration:An eventual solution may be to allow qualified original function references in
@derivative
attribute, e.g.@derivative(of: ModuleName.max)
.This issue has been encountered in practical use cases, e.g. ewconnell/swiftrt#4
The text was updated successfully, but these errors were encountered: