↓ 2 callersMethod_pack_latentsPack latents from [B, C, H, W] to [B, (H//2)*(W//2), C*4] for transformer input. Uses 2x2 packing like Flux: combines 2x2 spatial patches int
lightx2v/models/schedulers/longcat_image/scheduler.py:301
↓ 2 callersMethod_pack_latents(latents, batchsize, num_channels_latents, height, width, layers=None)
lightx2v/models/video_encoders/hf/qwen_image/vae.py:164
↓ 2 callersMethod_post_block(self, block, residual_x, mixed_attn_out, gate_msa, shift_mlp, scale_mlp, gate_mlp, context, context_mask)
lightx2v/models/networks/wan/infer/fastwam/transformer_infer.py:61
↓ 2 callersMethod_predict_causal_flow(
self,
latents,
timestep,
pos_context,
neg_context,
kv_cache_
lightx2v_train/lightx2v_train/infer/video.py:314
↓ 2 callersMethod_reshape_img_attn(self, img_attn, world_size, shard_seqlen, shard_heads, hidden_dims, seq_p_group, use_fp8_comm)
lightx2v/common/ops/attn/ulysses_attn.py:480
↓ 2 callersMethod_run_attention(self, query, key, value, calculate, merge_batch=False)
lightx2v/models/networks/hunyuan3d/infer/transformer_infer.py:65
↓ 2 callersMethod_slice_rope(self, rope_cos_sin, idx, padding_size=0, world_size=None, cur_rank=None)
lightx2v/models/networks/hidream_o1_image/infer/pre_infer.py:183