Session Ready
Exercise

Sessions, constants, and variables in TensorFlow

So far, you've learned about starting TensorFlow sessions, and creating new constants and variables. These serve as starting blocks in TensorFlow, and are necessary to build upon when creating sophisticated machine learning and deep learning models.

Remember that to assign values that do not change (such as input data), use constants via tf$constant(). Variables, on the other hand, may change over the course of your session, and should be assigned using tf$Variable().

Using this information, you'll practice how to load constants and variables into your TensorFlow environment.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Start a new TensorFlow session named sess.
  • Create two constants, a and b, with the values 10 and 32.
  • Add your constants together.