Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ expand_dims_like
Function
expand_dims_like
sat/sgm/util.py:227–230 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
225
226
227
def
expand_dims_like(x, y):
228
while
x.dim() != y.dim():
229
x = x.unsqueeze(-1)
230
return
x
231
232
233
def
default(val, d):
Callers
1
get_single_embedding
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected