MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / append_zero

Function append_zero

k_diffusion/sampling.py:13–14  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

11
12
13def append_zero(x):
14 return torch.cat([x, x.new_zeros([1])])
15
16
17def get_sigmas_karras(n, sigma_min, sigma_max, rho=7., device='cpu'):

Callers 4

get_sigmas_karrasFunction · 0.85
get_sigmas_exponentialFunction · 0.85
get_sigmas_vpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected