The Swift for TensorFlow project is an exciting endeavor that is a great example of the kind of expansion of Swift to more domains and applications that was enabled and envisioned by making Swift open source.
For bringup reasons the Swift compiler work for Swift for TensorFlow has been going on at the GitHub fork google/swift. @Chris_Lattner3 and I both feel that moving the work on that fork to be directly developed on apple/swift is beneficial to the Swift community for two reasons:
From an engineering perspective it re-concentrates active collaborative work on the Swift compiler into a central place.
It helps allay concerns about a distinct language fork of Swift for TensorFlow being developed outside the primary Swift repository.
While Swift for TensorFlow may inevitably contain changes specific for the needs of the TensorFlow domain, @Chris_Lattner3 and I believe that the vast majority of the work going into Swift for TensorFlow aligns with the core goals of the Swift project and ideally would be eventually “upstreamed” into the Swift
master branch. In the meantime as an intermediate step, the Swift for TensorFlow work will be moving from google/swift to a new feature branch on apple/swift titled
Some key operational points:
tensorflowbranch will be tracking
Google plans on looking into wiring up CI support for the branch as part of the newly announced Community-Hosted Continuous Integration.
New language features being developed in the
tensorflowbranch will eventually go through the Swift evolution process as part of being considered for being pulled into
Both @Chris_Lattner3 and I hope that the
tensorflowbranch will eventually go away, with TensorFlow-specific bits existing in
masterbut potentially conditionalized under feature guards. The work will start out in the
tensorflowbranch given that it is relatively new and undergoing significant iteration and churn.
TensorFlow work related to changes to the Swift compiler will be discussed on the Development > Compiler section of the Swift forum, just like any other compiler work.
tensorflow branch will be created imminently after this post. My thanks for @Chris_Lattner3 for bringing this work back to the primary Swift repository.