Paul Krill
Editor at Large

Swift for TensorFlow aims for high-performance machine learning

news
Sep 16, 20192 mins

Future plans for the project that brings Swift to machine learning include C++ interoperability, improved automatic differentiation, and support for distributed training

road to future
Credit: Thinkstock

Google developers behind Swift for TensorFlow, which tunes the Apple-designed Swift programming language for machine learning applications, shared project roadmap information in a recent talk. Future plans for Swift for TensorFlow include capabilities such as C++ interoperability, improved automatic differentiation, and support for distributed training.

Swift for TensorFlow is an early-stage, Google-led project that integrates Google’s TensorFlow machine learning library with Swift, the modern general purpose language created by Apple. The use of Swift enables more powerful algorithms to be expressed in a new manner, and easy differentiation of functions via generalized differentiation APIs, according to the Swift for TensorFlow developers.

Open source Swift has been described on the Swift for TensorFlow project website as easy to use and elegant, with advantages such as a strong type system, which can help developers catch errors earlier and promotes good API design. Building on TensorFlow, Swift for TensorFlow APIs provide transparent access to low-level TensorFlow operators.

Swift for TensorFlow is focused on two sets of users: advanced researchers limited by current machine learning frameworks, and machine learning learners just getting started. Extensions to the Swift language provide interoperability between Swift and Python, a popular language in machine learning. Python can be imported within a Swift Jupyter Notebook and TensorFlow itself is Python-friendly. Developers can write Swift to call into Python libraries, with no wrappers and no additional overhead. 

Where to download Swift for Tensorflow

You can download Swift for TensorFlow from GitHub. Tutorials, documentation, and instructions for community participation in the project can be found at tensorflow.org/swift.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author