↓ 4 callersFunctionall2all_head2seq 将输入张量从 [seq_len, heads/N, hidden_dims] 转换为 [seq_len/N, heads, hidden_dims] 的格式。 参数: input (torch.Tensor): 输入张量,形状为 [seq_len, heads/N
lightx2v/common/ops/attn/utils/all2all.py:99
↓ 4 callersFunctionbatch_kmeans_Euclid Batched KMeans clustering in PyTorch using Euclidean distance. Args: x: Tensor of shape (B, N, D), batch_size B, N points per batch,
lightx2v/common/ops/attn/svg2_attn_utils.py:671
↓ 4 callersFunctioncutlass_scaled_nvfp4_mm(mat_a, mat_b, scales_a, scales_b, alpha, bias=None)
lightx2v_kernel/python/lightx2v_kernel/gemm.py:4
↓ 4 callersMethodencode(self, videos, device, tiled=True, tile_size=(34, 34), tile_stride=(18, 16))
lightx2v/models/video_encoders/hf/wan/vae_sf.py:138
↓ 4 callersFunctionget_block_map_meansim(q, k, is_causal=False, BLKQ=128, BLKK=64, simthreshd1=0.1, cdfthreshd=0.9, topk=None, return_lut=False, atten
lightx2v/common/ops/attn/utils/sparge_util.py:202
↓ 4 callersMethodget_vae_encoder_output(self, first_frame, lat_h, lat_w, last_frame=None, world_size_h=None, world_size_w=None)
lightx2v/models/runners/wan/wan_runner.py:552
↓ 4 callersMethodinfer_block(
self,
block_weight,
hidden_states,
freqs_cis,
adaln_input=None,
lightx2v/models/networks/z_image/infer/transformer_infer.py:159