Functionbatch_kmeans_Cosine Batched KMeans clustering in PyTorch using Cosine similarity. Args: x: Tensor of shape (B, N, D), batch_size B, N points per batch,
lightx2v/common/ops/attn/svg2_attn_utils.py:726
Functioncache_image(tensor, save_file, nrow=8, normalize=True, value_range=(-1, 1), retry=5)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/utils.py:50
Functioncache_video(
tensor,
save_file: str,
fps=30,
suffix=".mp4",
nrow=8,
normalize=True,
value_ran
lightx2v/utils/utils.py:66
Functioncache_video(tensor, save_file=None, fps=30, suffix=".mp4", nrow=8, normalize=True, value_range=(-1, 1), retry=5)
lightx2v_train/lightx2v_train/model_zoo/native/wan/utils/utils.py:23
Functioncompress_kernel(
X,
XM,
L: tl.constexpr,
H: tl.constexpr,
D: tl.constexpr,
BLOCK_L: tl.constexpr,
)
lightx2v/common/ops/attn/utils/sla_util_blhd.py:7
Functioncompress_kernel(
X,
XM,
L: tl.constexpr,
D: tl.constexpr,
BLOCK_L: tl.constexpr,
)
lightx2v/common/ops/attn/utils/sla_util.py:7