I didn’t know it… -----------------  We all know how to work with tensorflow library and make some amazing models like “cat-dog gif below” leading to great predictions 💯. But what the hell is a tensor? Maybe you know it… But I didn’t know it. > Updated-Deep Learning is an attempt to copy the pattern detection ability of a human brain, the main cause of pattern detection is Neural Networks in our brain.  [Source](https://www.google.co.in/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwitmOfMwJjWAhUEuI8KHaC0B70QjRwIBw&url=https%3A%2F%2Fsourcedexter.com%2Fquickly-setup-tensorflow-image-recognition%2F&psig=AFQjCNECC-bU3aVXpskLqFb5wTh9hC5KSg&ust=1505059427589200) #### What is Tensor? It is **just a general term for unit of data.** Duh… we all know it… It is also represented with a **Rank**, like in Matrix. They are [g](https://en.wikipedia.org/wiki/Geometry "Geometry")eometric objects that describe linear relations between [geometric](https://hackernoon.com/tagged/geometric) vectors, scalars, and other tensors. Updated-A tensor consists of a set of primitive values shaped into an array of any number of dimensions. #### But which type of data, Scalar or Vector? If you think like me, that it is an upgrade of vectors like vectors is an upgrade to scalars. Then no, you are wrong. **Both** the quantities Scalar and Vector are Tensors. #### What is a Rank or Tensor’s Rank? The **number of dimensions** used to [represent](https://hackernoon.com/tagged/represent) the data is known as its Rank. #### How does it look? Updated- **rank/dimension zero tensor** or a **Scalar.** 5 # The shape is [] A **rank/dimension 1** **tensor** or a **Vector**. [ 1., 2., 3., 4. ] # The shape is [4] A **rank/dimension 2 tensor** or a **Matrix**. This is 2D _just like a photo with X axis and Y axis._ # Matrix of **shape \[ 2, 4\]** \[ \[ 1., 2., 3., 4. \], \[ 5., 6., 7., 8. \] \] A **rank/dimension 3 tensor** or a **Tensor**. This is 3D _just like real world with X, Y and Z axis._ Simply, it is just _matrices inside a bigger matrix_. # Tensor of **shape \[ 2, 1, 4 \]** **\[** \[ **\[** 1., 2., 3., 4. **\]** \]**,** \[ **\[** 5., 6., 7., 8. **\]** \] **\]** This is how you can increase the dimensionality of a tensor. 😃 > Tensor a mathematical object analogous to but more general than a vector, represented by an array of components that are functions of the coordinates of a space. Any comments or if you have any question, **write it in the comments.** I will be posting **3** posts per week so don’t miss the tutorial. So, follow me on [Medium](https://medium.com/@sagarsharma4244), [Facebook](https://www.facebook.com/profile.php?id=100003188718299), [Twitter](https://twitter.com/SagarSharma4244), [LinkedIn](https://www.linkedin.com/in/sagar-sharma-232a06148/), [Google+](https://plus.google.com/u/0/+SAGARSHARMA4244), [Quora](https://www.quora.com/profile/Sagar-Sharma-71) to see similar posts. **Clap it! Share it! Follow Me!** Happy to be helpful. kudos….. ### Previous stories you will love: 1. [Cross- Validation Code Visualization: Kind of Fun](https://medium.com/towards-data-science/cross-validation-code-visualization-kind-of-fun-b9741baea1f8) 2\. [Linear Regression: The Easier Way](https://medium.com/towards-data-science/linear-regression-the-easier-way-6f941aa471ea) 3\. [DIY Arduino Wireless Keyboard](https://medium.com/towards-data-science/linear-regression-the-easier-way-6f941aa471ea) 4\. [Activation Function Explained: Neural Networks](https://medium.com/towards-data-science/activation-functions-neural-networks-1cbd9f8d91d6)