TensorFlow.js Tutorial (Cont.)


Creating a Tensor
The main data type in TensorFlow is the tensor, which is created from any N-dimensional array with the tf.tensor() function:

     


     


     


Tensor Shape
A tensor can also be created from an array and a shape parameter.

     


     


     





      I want to die peacefully in my sleep, like my grandfather..    
      Not screaming and yelling like the passengers in his car.