Session Ready
Exercise

Create tensors yourself

As stated, there are three main types of tensors you will largely be using while working within TensorFlow. These include:

  • tf$placeholder(), used when you know the shape, but not the data, for your tensor

  • tf$Variable(), used when the shape and the data are known but are likely to change during your session, and

  • tf$constant(), used for data which will not change over the session

    Use the next few exercises to become comfortable creating these tensor types.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Create a constant tensor with a value of 152.
  • Create a second constant tensor with the string: I am a tensor master!