Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
8
def
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
14
def
extract(v, t, x_shape):
Callers
2
noisy_image
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected