© Rahul Bhalley 2021
R. BhalleyDeep Learning with Swift for TensorFlowhttps://doi.org/10.1007/978-1-4842-6330-3_4

4. TensorFlow Basics

Rahul Bhalley1  
(1)
Ludhiana, India
 

The most important thing now is no longer debating whether differentiable programming should exist for Swift (because Swift + ML is sooo important!), but figuring out the best form that should land in the language!

—Richard Wei on Twitter

This short practical chapter is designed to introduce some deep learning–specific features of Swift for TensorFlow. Section 4.1 introduces the concept of tensor data structure which is essentially what neural networks make prediction from. After reading this chapter, you will be able to load the datasets (Section 4.2), write your own neural networks ...

Get Deep Learning with Swift for TensorFlow: Differentiable Programming with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.