MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

Methodforward
Apply chunk-causal softmax attention to a token sequence.
diffusion/model/nets/sana_gdn_blocks.py:1091
Methodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_blocks.py:1263
Methodforward
(self, x, y, t, mask=None, HW=None, image_rotary_emb=None, **kwargs)
diffusion/model/nets/sana_multi_scale.py:145
Methodforward
(self, x, timestep, y, data_info=None, return_logvar=False, **kwargs)
diffusion/model/nets/sana_multi_scale.py:457
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/ladd_blocks.py:30
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/ladd_blocks.py:51
Methodforward
(self, x: torch.Tensor, c: torch.Tensor)
diffusion/model/nets/ladd_blocks.py:101
Methodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_camctrl_blocks.py:622
Methodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_camctrl_blocks.py:758
Methodforward
( ctx, x: torch.Tensor, qkv_weight: torch.Tensor, proj_weight: torch.Tensor,
diffusion/model/nets/fastlinear/modules/triton_lite_mla_fwd.py:28
Methodforward
(self, x: torch.Tensor, mask=None, HW=None, block_id=None)
diffusion/model/nets/fastlinear/modules/triton_lite_mla_fwd.py:100
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/fastlinear/modules/lite_mla.py:79
Methodforward
(self, x)
diffusion/model/nets/fastlinear/modules/flash_attn.py:34
Methodforward
( ctx, x: torch.Tensor, qkv_weight: torch.Tensor, proj_weight: torch.Tensor,
diffusion/model/nets/fastlinear/modules/triton_lite_mla.py:34
Methodforward
(self, x: torch.Tensor, mask=None, HW=None, block_id=None)
diffusion/model/nets/fastlinear/modules/triton_lite_mla.py:119
Methodforward
(self, x: torch.Tensor, HW=None)
diffusion/model/nets/fastlinear/modules/triton_mb_conv_pre_glu.py:86
Methodforward
(self, x: torch.Tensor, HW=None)
diffusion/model/nets/fastlinear/modules/mb_conv_pre_glu.py:76
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/fastlinear/modules/nn/norm.py:30
Methodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns:
diffusion/model/nets/fastlinear/modules/nn/norm.py:219
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/fastlinear/modules/nn/conv.py:68
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:430
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:504
Methodforward
(self, x: torch.Tensor, global_step: int)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae.py:728
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:426
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:508
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/efficientvit/dc_ae_with_temporal.py:724
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/drop.py:86
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:126
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:154
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:183
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:205
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:250
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:281
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:310
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:353
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:366
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:465
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:512
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:570
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:624
Methodforward
(self, input: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:649
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:828
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:911
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:943
Methodforward
(self, feature_dict: dict[str, torch.Tensor])
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:976
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops.py:1001
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:151
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:321
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:411
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:441
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:486
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:516
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:542
Methodforward
( self, x: torch.Tensor, feature_cache: Optional[dict[str, torch.Tensor]] = None,
diffusion/model/dc_ae/efficientvit/models/nn/ops_3d.py:567
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:30
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:43
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:74
Methodforward
(self, x: torch.Tensor)
diffusion/model/dc_ae/efficientvit/models/nn/norm.py:82
Methodforward
(ctx, x, weight, bias, eps)
diffusion/model/dc_ae/efficientvit/models/nn/triton_rms_norm.py:134
Methodforward
Apply RMS normalization along the configured dimension.
diffusion/model/ltx2/causal_vae.py:237
Methodforward
Forward pass with optional causal convolution and feature caching. Args: hidden_states: Input tensor [B, C, T, H, W]
diffusion/model/ltx2/causal_vae.py:299
Methodforward
Forward pass through ResNet block.
diffusion/model/ltx2/causal_vae.py:496
Methodforward
Forward pass with temporal grouping state management.
diffusion/model/ltx2/causal_vae.py:584
Methodforward
Forward pass with trim state management.
diffusion/model/ltx2/causal_vae.py:718
Methodforward
( self, hidden_states: torch.Tensor, temb: torch.Tensor | None = None, generat
diffusion/model/ltx2/causal_vae.py:878
Methodforward
( self, hidden_states: torch.Tensor, temb: torch.Tensor | None = None, generat
diffusion/model/ltx2/causal_vae.py:950
Methodforward
( self, hidden_states: torch.Tensor, temb: torch.Tensor | None = None, generat
diffusion/model/ltx2/causal_vae.py:1064
Methodforward
( self, hidden_states: torch.Tensor, causal: bool | None = None, feat_cache: l
diffusion/model/ltx2/causal_vae.py:1204
Methodforward
( self, hidden_states: torch.Tensor, temb: torch.Tensor | None = None, causal:
diffusion/model/ltx2/causal_vae.py:1377
Methodforward
Full forward pass: encode then decode. Args: sample: Input video tensor [B, C, T, H, W] temb: Optional timestep embed
diffusion/model/ltx2/causal_vae.py:2119
Methodforward
( self, noisy_image_or_video: torch.Tensor, condition: torch.Tensor, timestep:
diffusion/longsana/utils/model_wrapper.py:98
Methodforward
(self, text_prompts: List[str])
diffusion/longsana/utils/model_wrapper.py:204
Methodforward
forward pass, compatible with WanDiffusionWrapper interface
diffusion/longsana/model/ode_regression_sana.py:22
Methodforward
(self, hidden_states: torch.Tensor)
diffusion/refiner/diffusers_ltx2_refiner.py:2453
Methodforward
(self, x)
train_scripts/sol_rl/train_utils.py:406
Methodforward
( self, prompt=None, ref_image=None, negative_prompt="", num_inference
app/sana_controlnet_pipeline.py:190
Methodforward
( self, image, mask, prompt=None, height=1024, width=1024,
app/sana_pipeline_inpaint.py:324
Methodforward
( self, prompt=None, height=1024, width=1024, num_inference_steps=20,
app/sana_sprint_pipeline.py:150
Methodforward
(self, x: torch.Tensor)
inference_video_scripts/wm/inference_sana_wm.py:377
Methodforward
( self, x: torch.Tensor, HW=None, save_kv_cache: bool = False, kv_cach
inference_video_scripts/wm/inference_sana_wm.py:400
Functionforward_head
(head_input)
train_scripts/train_scm_ladd.py:715
Methodforward_hook
(self, module, input, output)
diffusion/utils/misc.py:351
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana_multi_scale_adaln.py:312
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana.py:350
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana_multi_scale_video_camctrl.py:1182
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana_multi_scale_controlnet.py:269
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana_multi_scale_video.py:779
Methodforward_with_dpmsolver
dpm solver donnot need variance prediction
diffusion/model/nets/sana_multi_scale.py:401
Methodframes_written
(self)
inference_video_scripts/wm/streaming_mp4_writer.py:161
Functionfree_model
(model)
diffusion/model/wan/fsdp_utils.py:37
Methodfrom_pretrained
(self, model_path)
app/sana_controlnet_pipeline.py:171
Methodfrom_pretrained
(self, model_path)
app/sana_pipeline_inpaint.py:170
Methodfrom_pretrained
(self, model_path)
app/sana_sprint_pipeline.py:134
Functionfused_bidi_stateful_chunkwise_shared_phase_a
Bidi state-cached chunkwise GDN with shared Phase A and combined-history Phase B. Default chunkwise path for ``_fused_statecached_forward``.
diffusion/model/ops/fused_gdn_chunkwise.py:1671
Functionfused_bigdn_stateful_chunkwise
Drop-in replacement for `fused_gdn.fused_bigdn_stateful` using the chunkwise pipeline. Same signature, same return shape: output (B, N, H, D
diffusion/model/ops/fused_gdn_chunkwise.py:1786
Functionfused_gdn_func_chunkwise
Single-direction chunkwise GDN — drop-in for `fused_gdn.fused_gdn_func`. Computes only one scan direction (Phase B + Phase C × 1) and returns
diffusion/model/ops/fused_gdn_chunkwise.py:1500
Functionfused_gdn_stateful_chunkwise
Single-direction chunkwise GDN with optional state cache — drop-in for `fused_gdn.fused_gdn_stateful`. Forward direction supports state load/save
diffusion/model/ops/fused_gdn_chunkwise.py:1559
Functiongather_layer_with_group
(data, group=None, group_size=None)
diffusion/utils/dist_utils.py:289
Functiongenerate
( prompt: str = None, negative_prompt: str = "", style: str = DEFAULT_STYLE_NAME, use_negative
app/app_sana_multithread.py:283
Functiongenerate
( prompt: str = None, style: str = DEFAULT_STYLE_NAME, num_imgs: int = 1, seed: int = 0, h
app/app_sana_sprint.py:217
← previousnext →2,201–2,300 of 2,606, ranked by callers