(x: TfExpressionEx)
Logarithm in base 2.
Logarithm in base 2.
Logarithm in base 2 .
def log2(x: TfExpressionEx) -> TfExpression:
    """Logarithm in base 2."""
    with tf.name_scope("Log2"):
        return tf.log(x) * np.float32(1.0 / np.log(2.0))
def log2 ( x : TfExpressionEx ) -> TfExpression : with tf . name_scope ( "Log2" ) : return tf . log ( x ) * np . float32 ( 1.0 / np . log ( 2.0 ) )