MCPcopy Create free account
hub / github.com/microsoft/TRELLIS.2 / reshape

Method reshape

trellis2/modules/sparse/basic.py:165–167  ·  view source on GitHub ↗
(self, *shape)

Source from the content-addressed store, hash-verified

163 return self.replace(new_feats)
164
165 def reshape(self, *shape) -> 'VarLenTensor':
166 new_feats = self.feats.reshape(self.feats.shape[0], *shape)
167 return self.replace(new_feats)
168
169 def unbind(self, dim: int) -> List['VarLenTensor']:
170 return varlen_unbind(self, dim)

Callers 15

pixel_shuffle_3dFunction · 0.45
patchifyFunction · 0.45
unpatchifyFunction · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
to_denseMethod · 0.45
__init__Method · 0.45
reshapeMethod · 0.45
replaceMethod · 0.45

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected