tfg.math.math_helpers.factorial

View source on GitHub

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].