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
After #28790 is merged, uncomment the second `extension FunctionWithPrivateDerivativesInSeprateExtensions` in `test/AutoDiff/Inputs/derivative_registration/main/main.swift` and run `test/AutoDiff/derivative_registration.swift` to get:
Related issue that we should resolve or file a separate ticket for, and add tests: If you define `foo` in file A, and a fileprivate derivative of `foo` in file A, and you try to differentiate `foo` in file B, then it will currently fail with a linker error (symbol not found). Ideally, it will give you an error that the function was defined in a different file and not marked @differentiable.
Similar related issue: If you define `foo` in file B, and a fileprivate derivative of `foo` in file A, and you try to differentiate `foo` in file B, then it will currently fail with a linker error (symbol not found). Ideally, it will try to automatically differentiate `foo` without using your custom derivative.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 7bf8f92a71ad0f5ef8b2cd2f24476459
Parent-Task:
Issue Description:
After #28790 is merged, uncomment the second `extension FunctionWithPrivateDerivativesInSeprateExtensions` in `test/AutoDiff/Inputs/derivative_registration/main/main.swift` and run `test/AutoDiff/derivative_registration.swift` to get:
Related issue that we should resolve or file a separate ticket for, and add tests: If you define `foo` in file A, and a fileprivate derivative of `foo` in file A, and you try to differentiate `foo` in file B, then it will currently fail with a linker error (symbol not found). Ideally, it will give you an error that the function was defined in a different file and not marked @differentiable.
Similar related issue: If you define `foo` in file B, and a fileprivate derivative of `foo` in file A, and you try to differentiate `foo` in file B, then it will currently fail with a linker error (symbol not found). Ideally, it will try to automatically differentiate `foo` without using your custom derivative.
The text was updated successfully, but these errors were encountered: