TensorFlow.js Tutorial (Cont.)


Retrieving Tensor Values
You can get the data behind a tensor using tensor.data() method:

     


You can get the array behind a tensor using tensor.array() method:

     


     


You can get the rank of a tensor using tensor.rank() method:

     





      We live in a society where pizza gets to your house before the police.