Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ cast_tuple
Function
cast_tuple
sat/vae_modules/cp_enc_dec.py:26–27 ·
view source on GitHub ↗
(t, length=1)
Source
from the content-addressed store, hash-verified
24
25
26
def
cast_tuple(t, length=1):
27
return
t
if
isinstance(t, tuple)
else
((t,) * length)
28
29
30
def
divisible_by(num, den):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected