Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ exists
Function
exists
diff2flow/ema.py:14–15 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
12
from
beartype.typing
import
Set, Optional
13
14
def
exists(val):
15
return
val is not None
16
17
def
get_module_device(m: Module):
18
return
next(m.parameters()).device
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected