- Hands-On Reinforcement Learning with Python
- Sudharsan Ravichandiran
- 34字
- 2021-06-18 19:12:08
Constants
Constants, unlike variables, cannot have their values changed. Constants are immutable; once they are assigned values they cannot be changed throughout. We can create constants using the tf.constant() function:
x = tf.constant(13)