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

Function init

k_diffusion/models/axial_rope.py:72–74  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

70
71def freqs_pixel(max_freq=10.0):
72 def init(shape):
73 freqs = torch.linspace(1.0, max_freq / 2, shape[-1]) * math.pi
74 return freqs.log().expand(shape)
75 return init
76
77

Callers 2

IterativeSolverBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected