(x: TfExpressionEx)
Exponent in base 2.
Exponent in base 2.
Exponent in base 2 .
def exp2(x: TfExpressionEx) -> TfExpression:
    """Exponent in base 2."""
    with tf.name_scope("Exp2"):
        return tf.exp(x * np.float32(np.log(2.0)))
def exp2 ( x : TfExpressionEx ) -> TfExpression : with tf . name_scope ( "Exp2" ) : return tf . exp ( x * np . float32 ( np . log ( 2.0 ) ) )