MCPcopy
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
291def linear(*args, **kwargs):
292 """
293 Create a linear module.
294 """
295 return nn.Linear(*args, **kwargs)
296
297
298def avg_pool_nd(dims, *args, **kwargs):

Callers 4

test01Function · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected