Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify tensorflow-branch Double.pow workaround. #1

Merged
merged 1 commit into from
May 28, 2020

Conversation

dan-zheng
Copy link

The Double.pow qualification is currently needed when building from apple/swift tensorflow branch to avoid a type-checker diagnostic:

yams/Sources/Yams/Representer.swift:133:21: error: static member 'pow' cannot be used on instance of type 'Double'
        let radix = pow(10.0, Double(precision))
                    ^~~
                    Double.

This error occurs only on tensorflow branch due to ad-hoc stdlib additions of the
ElementaryFunctions protocol and conformances, including the static member
Double.pow.

TF-1203 tracks removing these ad-hoc stdlib additions adding apple/swift-numerics
as a legitimate dependency.

The workaround is specific to apple/swift tensorflow branch.

It is related to https://bugs.swift.org/browse/TF-1203: ad-hoc
`ElementaryFunctions` protocol/conformances stdlib additions.
@asuhan asuhan merged commit 8e986eb into asuhan:3.0.1-patched May 28, 2020
@dan-zheng dan-zheng deleted the 3.0.1-patched branch May 28, 2020 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants