MCPcopy 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
27def is_scalar(tensor):
28 return torch.is_tensor(tensor) and tensor.dim() == 0
29
30class SATVideoDiffusionEngine(nn.Module):
31 def __init__(self, args, **kwargs):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected