MCPcopy Index your code
hub / github.com/Royalvice/DocDiff / extract_

Function extract_

schedule/diffusionSample.py:8–11  ·  view source on GitHub ↗
(a, t, x_shape)

Source from the content-addressed store, hash-verified

6
7
8def extract_(a, t, x_shape):
9 b, *_ = t.shape
10 out = a.gather(-1, t)
11 return out.reshape(b, *((1,) * (len(x_shape) - 1)))
12
13
14def extract(v, t, x_shape):

Callers 2

noisy_imageMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected