MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / linear

Function linear

sat/sgm/modules/diffusionmodules/util.py:261–265  ·  view source on GitHub ↗

Create a linear module.

(*args, **kwargs)

Source from the content-addressed store, hash-verified

259
260
261def linear(*args, **kwargs):
262 """
263 Create a linear module.
264 """
265 return nn.Linear(*args, **kwargs)
266
267
268def avg_pool_nd(dims, *args, **kwargs):

Callers 5

_build_modulesMethod · 0.90
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected