MCPcopy Create free account
hub / github.com/Yasoz/DiffTraj / compute_alpha

Function compute_alpha

utils/utils.py:60–63  ·  view source on GitHub ↗
(beta, t)

Source from the content-addressed store, hash-verified

58
59
60def compute_alpha(beta, t):
61 beta = torch.cat([torch.zeros(1).to(beta.device), beta], dim=0)
62 a = (1 - beta).cumprod(dim=0).index_select(0, t + 1).view(-1, 1, 1)
63 return a
64
65
66def p_xt(xt, noise, t, next_t, beta, eta=0):

Callers 1

p_xtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected