Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
def
append_zero(x):
14
return
torch.cat([x, x.new_zeros([1])])
15
16
17
def
get_sigmas_karras(n, sigma_min, sigma_max, rho=7., device=
'cpu'
):
Callers
4
get_sigmas_karras
Function · 0.85
get_sigmas_exponential
Function · 0.85
get_sigmas_polyexponential
Function · 0.85
get_sigmas_vp
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected