bits_per_dimension¶
-
tfsnippet.ops.
bits_per_dimension
(log_p, value_size, scale=256.0, name=None)¶ Compute “bits per dimension” of x.
BPD(x) = - log(p(x)) / (log(2) * Dim(x))
If u = s * x, then:
BPD(x) = - (log(p(u)) - log(s) * Dim(x)) / (log(2) * Dim(x))
Parameters: Returns: The computed “bits per dimension” of x.
Return type: tf.Tensor