Introduction to TensorFlow
TensorFlow is an end-to-end open source platform for ML, developed by Google Brain, and it is one of the most widely used ML frameworks by data scientists.
TensorFlow flow tensors – TensorFlow’s name is directly derived from its core framework components: tensors. Let’s start by understanding tensors.
Understanding the concept of tensors
A tensor is a container that holds data of various sizes and shapes in an N-dimensional space. A tensor can be originated from the input data or a computation of the input data. In ML, we call the tensor components features. A tensor has three main characters to describe itself, called a tensor’s rank, shape, and dtype as follows:
- Rank is the number of directions
- Shape is the number of elements in each direction
- Dtype is the data type
The rank of a tensor specifies the number of directions being measured for a tensor. From the number of ranks, a tensor can be categorized...