Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ exists
Function
exists
diff2flow/models/unet/attention.py:21–22 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
19
_ATTN_PRECISION = os.environ.get(
"ATTN_PRECISION"
,
"fp32"
)
20
21
def
exists(val):
22
return
val is not None
23
24
25
def
uniq(arr):
Callers
4
default
Function · 0.70
forward
Method · 0.70
forward
Method · 0.70
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected