MCPcopy Create free account
hub / github.com/294coder/Dif-PAN / default

Function default

utils/misc.py:18–22  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

16
17
18def default(a, b):
19 if exist(b):
20 return b
21 else:
22 return a
23
24
25def grad_clip(params, mode: str = "value", value: float = None, **kwargs) -> None:

Callers

nothing calls this directly

Calls 1

existFunction · 0.85

Tested by

no test coverage detected