Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ cast_tuple
Function
cast_tuple
sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:13–14 ·
view source on GitHub ↗
(t, length=1)
Source
from the content-addressed store, hash-verified
11
12
13
def
cast_tuple(t, length=1):
14
return
t
if
isinstance(t, tuple)
else
((t,) * length)
15
16
17
def
divisible_by(num, den):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected