Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ is_scalar
Function
is_scalar
sat/diffusion_video.py:27–28 ·
view source on GitHub ↗
(tensor)
Source
from the content-addressed store, hash-verified
25
26
27
def
is_scalar(tensor):
28
return
torch.is_tensor(tensor) and tensor.dim() == 0
29
30
class
SATVideoDiffusionEngine(nn.Module):
31
def
__init__(self, args, **kwargs):
Callers
1
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected