Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
18
def
default(a, b):
19
if
exist(b):
20
return
b
21
else
:
22
return
a
23
24
25
def
grad_clip(params, mode: str =
"value"
, value: float = None, **kwargs) -> None:
Callers
nothing calls this directly
Calls
1
exist
Function · 0.85
Tested by
no test coverage detected