MCPcopy 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

12from beartype.typing import Set, Optional
13
14def exists(val):
15 return val is not None
16
17def 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