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

Function sparse_batch_broadcast

trellis/modules/sparse/basic.py:399–412  ·  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)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__elemwise__Method · 0.85
sparse_batch_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected