Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ uniq
Function
uniq
diff2flow/models/unet/attention.py:25–26 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
23
24
25
def
uniq(arr):
26
return
{el: True
for
el in arr}.keys()
27
28
29
def
default(val, d):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected