MCPcopy Index your code
hub / github.com/microsoft/TRELLIS / reshape

Method reshape

trellis/modules/sparse/basic.py:236–238  ·  view source on GitHub ↗
(self, *shape)

Source from the content-addressed store, hash-verified

234 return self.data.dense()
235
236 def reshape(self, *shape) -> 'SparseTensor':
237 new_feats = self.feats.reshape(self.feats.shape[0], *shape)
238 return self.replace(new_feats)
239
240 def unbind(self, dim: int) -> List['SparseTensor']:
241 return sparse_unbind(self, dim)

Callers 15

pixel_shuffle_3dFunction · 0.80
patchifyFunction · 0.80
unpatchifyFunction · 0.80
_rotary_embeddingMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
__init__Method · 0.80
replaceMethod · 0.80
fullMethod · 0.80

Calls 1

replaceMethod · 0.95

Tested by

no test coverage detected