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

Function expand_dims_like

sat/vae_modules/utils.py:219–222  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

217
218
219def expand_dims_like(x, y):
220 while x.dim() != y.dim():
221 x = x.unsqueeze(-1)
222 return x
223
224
225def default(val, d):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected