Deep learning from getting started to not wanting to give up-2

 I was joking with my colleagues yesterday that I thought of a few interesting and practical topics and planned to write them down. Actually, I originally wanted to take advantage of the hot topics and write something else today, but so many news suddenly came out. After thinking about it again, I decided to write about technology. Article!

      Continuing to talk about the basics, today’s topic is about Tensor

    What is Tensor? Whether you are doing deep learning or not, you may have heard of Tensorflow. This is a new word integrating the two words. The previous Tensor is the core, and the literal translation of Tensor is tensor. So what is a tensor?

     Tensor is a general term, which can be broken down into many branches. Here are a few examples:

  •      0th-order tensor: scalar is the constant we often use in our daily life. Constant is generally recorded as 0-D Tensor.

  •      1st order tensor: vector, venctor, 1-D Tensor

  •      2nd order tensor: matrix, martix, 2-D Tensor

  •      After level 3, people generally don’t give special names.

     Order/dimension/dimension can be approximately thought of as the number of shapes in a high-dimensional array

     Look at an example:

     We first set a Tensor as a

Image

Print the shape of Tensor a

Guess you like

Origin blog.csdn.net/kingsoftcloud/article/details/134792703