Join TensorFlow at Google I/O, May 11-12 Register now

tfg.math.math_helpers.factorial

Computes the factorial of n.

Note:

In the following, A1 to An are optional batch dimensions.

n A tensor of shape [A1, ..., An].

A tensor of shape [A1, ..., An].