Creating Tensors
Summary
tf.constant()
tf.Variable()
Creating Tensors
tf.constant()
- Once created, cannot be changed
tf.Variable()
- Can be mutated
Constant function
Once created, the value cannot be changed
tf.constant([1, 2, 3])
# <tf.Tensor: shape=(3,), dtype=int32, numpy=array([1, 2, 3], dtype=int32)>