MCPcopy Create free account
hub / github.com/openai/point-e / approx_standard_normal_cdf

Function approx_standard_normal_cdf

point_e/diffusion/gaussian_diffusion.py:1050–1055  ·  view source on GitHub ↗

A fast approximation of the cumulative distribution function of the standard normal.

(x)

Source from the content-addressed store, hash-verified

1048
1049
1050def approx_standard_normal_cdf(x):
1051 """
1052 A fast approximation of the cumulative distribution function of the
1053 standard normal.
1054 """
1055 return 0.5 * (1.0 + th.tanh(np.sqrt(2.0 / np.pi) * (x + 0.044715 * th.pow(x, 3))))
1056
1057
1058def discretized_gaussian_log_likelihood(x, *, means, log_scales):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected