Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ linear
Function
linear
diff2flow/models/unet/util.py:128–132 ·
view source on GitHub ↗
Create a linear module.
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
126
127
128
def
linear(*args, **kwargs):
129
""
"
130
Create a linear module.
131
""
"
132
return
nn.Linear(*args, **kwargs)
133
134
135
def
avg_pool_nd(dims, *args, **kwargs):
Callers
2
__init__
Method · 0.90
__init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected