Google has open sourced again: Swift for TensorFlow

In March this year, Google publicly demonstrated Swift for TensorFlow at the TensorFlow Developer Summit. Recently, the TensorFlow official website announced that Swift for TensorFlow has been open sourced on GitHub. The address is as follows:

https://github.com/tensorflow/swift

About Swift for TensorFlow

Swift for TensorFlow provides a new programming model for TensorFlow that combines the TensorFlow computation graph with the flexibility and expressiveness of Eager Execution, while also focusing on improving usability at every layer of the entire software architecture.

The basis of the design is an algorithm called "Graph Program Extraction", which allows everyone to easily implement code using an Eager Execution-style programming model, while retaining the high-performance advantages of TensorFlow's computational graph.

Implementing a reliable Graph Program Extraction algorithm has high requirements for programming language design. After analysis and discussion, Google chose Swift as the main language. They integrate advanced automatic differentiation directly into the Swift language and compiler.

The "Swift for TensorFlow Design Overview" document describes the main components of the project and how they are combined. Google also gave an in-depth introduction to Python and Swift integration, allowing you to use any Python API directly from your Swift code.

The project currently has installation packages for macOS and Linux, as well as a development guide that teaches you how to get the source code. This project is still in the early stage of development, and everyone can participate in the discussion of their design proposals to promote the development of this project together. If you encounter difficulties, you can contact the developers in the "TensorFlow Suggestions and Feedback" section of the TensorFlow Chinese Community Forum.

The original text comes from: http://www.sohu.com/a/229798740_114877

Address of this article: https://www.linuxprobe.com/swift-for-tensorflow.html Editor: Tang Zifu, Auditor: Pang Zengbao

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325297560&siteId=291194637