Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/TRELLIS.2
/ __cal_spatial_shape
Method
__cal_spatial_shape
trellis2/modules/sparse/basic.py:473–474 ·
view source on GitHub ↗
(self, coords)
Source
from the content-addressed store, hash-verified
471
return
layout
472
473
def
__cal_spatial_shape(self, coords):
474
return
torch.Size((coords[:, 1:].max(0)[0] + 1).tolist())
475
476
@property
477
def
shape(self) -> torch.Size:
Callers
1
spatial_shape
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected