Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/FreeSplatter
/ default
Function
default
freesplatter/models/transformer.py:14–17 ·
view source on GitHub ↗
(val, d)
Source
from the content-addressed store, hash-verified
12
13
14
def
default(val, d):
15
if
exists(val):
16
return
val
17
return
d()
if
isfunction(d)
else
d
18
19
20
class
CrossAttention(nn.Module):
Callers
2
__init__
Method · 0.85
forward
Method · 0.85
Calls
2
exists
Function · 0.85
d
Function · 0.50
Tested by
no test coverage detected