Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Stability-AI/generative-models
/ linear
Function
linear
sgm/modules/diffusionmodules/util.py:291–295 ·
view source on GitHub ↗
Create a linear module.
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
289
290
291
def
linear(*args, **kwargs):
292
""
"
293
Create a linear module.
294
""
"
295
return
nn.Linear(*args, **kwargs)
296
297
298
def
avg_pool_nd(dims, *args, **kwargs):
Callers
4
test01
Function · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected