deepof.model_utils.compute_shannon_entropy
- deepof.model_utils.compute_shannon_entropy(tensor)
Compute Shannon entropy for a given tensor.
- Parameters:
tensor (tf.Tensor) – tensor to compute the entropy for
- Returns:
entropy of the tensor
- Return type:
tf.Tensor