Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
PINTO edited this page Dec 16, 2018 · 13 revisions

tf.exp

Computes exponential of x element-wise.
y = e ^ x
e ≒ 2.7

tf.exp(
    x,
    name=None
)

tf.fill

Output tensor has shape [2, 3]

tf.fill([2, 3], 2.7) ==> [[2.7, 2.7, 2.7],
                          [2.7, 2.7, 2.7]]

tf.pow

Computes the power of one value to another.
Given a tensor x and a tensor y, this operation computes x ^ y for corresponding elements in x and y.

x = tf.constant([[2, 2], [3, 3]])
y = tf.constant([[8, 16], [2, 3]])
tf.pow(x, y)  # [[256, 65536], [9, 27]]