i have seen the answer here. It is not what i am looking for.
I am running this on tensorflow2.0
I read the following sentence in the TensorFlow documentation:
With the exception of tf.Variable, the value of a tensor is immutable, which means that in the context of a single execution tensors only have a single value. However, evaluating the same tensor twice can return different values; for example that tensor can be the result of reading data from disk, or generating a random number.
I tried using tensors as a dictionary key and i get the following error:
Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ref() as the key
- What does this error mean?
- Are tf.Variables hashable as well? They also define a computation rather than being the computation, so why the distinction 'With the exception of tf.Variable, the value of a tensor is immutable' is there