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

Function sparse_batch_op

trellis/modules/sparse/basic.py:415–424  ·  view source on GitHub ↗

Broadcast a 1D tensor to a sparse tensor along the batch dimension then perform an operation. Args: input (torch.Tensor): 1D tensor to broadcast. target (SparseTensor): Sparse tensor to broadcast to. op (callable): Operation to perform after broadcasting.

(input: SparseTensor, other: torch.Tensor, op: callable = torch.add)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

sparse_batch_broadcastFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected