MCPcopy Create free account
hub / github.com/Stable-X/ComfyUI-Hi3DGen / patchify

Function patchify

trellis/modules/spatial.py:16–31  ·  view source on GitHub ↗

Patchify a tensor. Args: x (torch.Tensor): (N, C, *spatial) tensor patch_size (int): Patch size

(x: torch.Tensor, patch_size: int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.85

Calls 2

dimMethod · 0.80
reshapeMethod · 0.80

Tested by

no test coverage detected