Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SHI-Labs/NATTEN
/ functions
Functions
2,059 in github.com/SHI-Labs/NATTEN
⨍
Functions
2,059
◇
Types & classes
573
↓ 94 callers
Method
append
(self, na_dim: int)
scripts/autogen_fna.py:311
↓ 70 callers
Method
debug
(self, *args, **kwargs)
src/natten/utils/log.py:124
↓ 60 callers
Function
print
csrc/include/natten/cuda/fna_blackwell/common/pow_2.hpp:81
↓ 51 callers
Function
ceil_div
csrc/include/natten/cuda/fna/gemm_kernel_utils.h:63
↓ 46 callers
Method
get
Returns a pointer
csrc/include/natten/cuda/fna/iterators/predicated_tile_access_iterator.h:1597
↓ 46 callers
Function
maybe_contiguous
(x)
src/natten/_libnatten/torch_wrappers.py:73
↓ 43 callers
Function
idx2crd
(index, shape)
src/natten/backends/flex.py:270
↓ 41 callers
Method
add_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:823
↓ 37 callers
Method
add_tile_offset
Advances an iterator along logical dimensions of matrix in units of whole tiles
csrc/include/natten/cuda/fna/iterators/predicated_tile_access_iterator.h:1591
↓ 37 callers
Method
get
Returns a pointer
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:829
↓ 34 callers
Method
load
csrc/include/natten/cuda/fmha/gemm/mma_from_smem.h:300
↓ 33 callers
Function
warp_uniform
csrc/include/natten/cuda/fmha/gemm_kernel_utils.h:215
↓ 31 callers
Function
ceil_div
csrc/include/natten/cuda/fmha/gemm_kernel_utils.h:118
↓ 30 callers
Function
get_device_cc
(device: Optional[torch.device] = None)
src/natten/utils/device.py:41
↓ 27 callers
Method
set_iteration_index
Overrides the internal iteration index
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:805
↓ 26 callers
Method
load
csrc/include/natten/cuda/fna/gemm/mma_from_smem.h:301
↓ 24 callers
Method
set_iteration_index
csrc/include/natten/cuda/fna/iterators/predicated_tile_access_iterator.h:427
↓ 24 callers
Function
token_permute_operation
( tensor: Tensor, tile_shape: DimensionType, dilation: Optional[DimensionType] = None, flip_ti
src/natten/token_permute/frontend.py:42
↓ 23 callers
Method
clear_mask
Clears the predicate set efficiently
csrc/include/natten/cuda/fmha/iterators/predicated_tile_iterator_residual_last.h:853
↓ 23 callers
Function
warp_uniform
csrc/include/natten/cuda/fna/gemm_kernel_utils.h:160
↓ 20 callers
Method
valid
Returns whether access is valid or not
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:884
↓ 19 callers
Method
backward
(ctx, grad_out: Tensor, grad_lse: Tensor)
src/natten/backends/fmha.py:121
↓ 18 callers
Method
clear
< Efficiently disables all accesses guarded by mask
csrc/include/natten/cuda/fmha/iterators/epilogue_predicated_tile_iterator.h:162
↓ 17 callers
Method
valid
Returns whether access is valid or not
csrc/include/natten/cuda/fna/iterators/predicated_tile_access_iterator.h:480
↓ 16 callers
Method
clear
< Efficiently disables all accesses guarded by mask
csrc/include/natten/cuda/fna/epilogue/predicated_tile_iterator.h:168
↓ 16 callers
Method
clear_mask
< Efficiently disables all accesses guarded by mask
csrc/include/natten/cuda/fna/epilogue/predicated_tile_iterator.h:604
↓ 15 callers
Method
add_pointer_offset
Adds a pointer offset in units of Element
csrc/include/natten/cuda/fmha/iterators/predicated_tile_iterator_residual_last.h:822
↓ 15 callers
Method
clear
csrc/include/natten/cuda/fna/kernel_backward.h:1198
↓ 15 callers
Method
init_state
csrc/include/natten/cuda/fna_hopper/collective/fna_collective_load.hpp:134
↓ 15 callers
Method
init_state
csrc/include/natten/cuda/fmha_hopper/collective/fmha_collective_load.hpp:167
↓ 15 callers
Function
token_unpermute_operation
( tensor: Tensor, token_layout_shape: DimensionType, tile_shape: DimensionType, dilation: Opti
src/natten/token_permute/frontend.py:94
↓ 14 callers
Function
_make_logger
(name: str)
tests/test_log.py:26
↓ 14 callers
Function
check_all_args
( na_dim: int, kernel_size: Any, stride: Any, dilation: Any, is_causal: Any )
src/natten/utils/checks.py:473
↓ 14 callers
Function
check_tile_shape
( tile_shape: Any, )
src/natten/utils/checks.py:529
↓ 14 callers
Method
set_residual_tile
csrc/include/natten/cuda/fmha/iterators/predicated_tile_iterator_residual_last.h:858
↓ 13 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_flex.py:58
↓ 13 callers
Method
append
(self, na_dim: int)
scripts/autogen_hopper_fna_bwd.py:275
↓ 13 callers
Method
append
(self, na_dim: int)
scripts/autogen_blackwell_fna.py:266
↓ 13 callers
Method
append
(self, na_dim: int)
scripts/autogen_blackwell_fna_bwd.py:270
↓ 13 callers
Method
append
(self, na_dim: int)
scripts/autogen_hopper_fna.py:310
↓ 13 callers
Function
is_cuda
(device: torch.device)
src/natten/utils/device.py:29
↓ 13 callers
Function
is_problem_shape_variable_length
csrc/include/natten/cuda/fmha_hopper/collective/fmha_varlen.hpp:86
↓ 12 callers
Function
_run_empty_batch_kernel_check
(backend, use_compile, test_causal=False)
tests/test_varlen_recompile.py:184
↓ 12 callers
Function
is_fp8
(dtype: torch.dtype)
src/natten/utils/dtype.py:35
↓ 12 callers
Function
tuple_add
csrc/include/natten/cuda/fna_hopper/collective/fna_common.hpp:74
↓ 11 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_fna.py:47
↓ 11 callers
Method
_test_all_dtypes_against_cutlass_2x_fna
( self, batch, heads, head_dim, input_shape, kernel_size,
tests/test_flex.py:88
↓ 11 callers
Method
accum_ref
csrc/include/natten/cuda/fmha/gemm/mma_from_smem.h:125
↓ 11 callers
Method
accum_ref
csrc/include/natten/cuda/fna/gemm/mma_from_smem.h:126
↓ 11 callers
Function
ceil_div_tuple
(X: tuple, Y: tuple)
src/natten/utils/tuples.py:31
↓ 11 callers
Method
clear
csrc/include/natten/cuda/fmha/kernel_backward.h:1086
↓ 11 callers
Function
gemm_zero_acc
csrc/include/natten/cuda/fna_hopper/collective/fna_common.hpp:111
↓ 11 callers
Function
gemm_zero_acc
csrc/include/natten/cuda/fmha_hopper/collective/fmha_common.hpp:68
↓ 11 callers
Method
get_block_coord
csrc/include/natten/cuda/fmha_hopper/kernel/fmha_tile_scheduler.hpp:78
↓ 11 callers
Function
load_with_byte_offset
Loads a fragment from memory
csrc/include/natten/cuda/fmha/iterators/epilogue_predicated_tile_iterator.h:347
↓ 11 callers
Method
store
Store a fragment to memory
csrc/include/natten/cuda/fmha/iterators/predicated_tile_iterator_residual_last.h:912
↓ 11 callers
Function
store_with_byte_offset
Stores a fragment to memory
csrc/include/natten/cuda/fmha/iterators/epilogue_predicated_tile_iterator.h:420
↓ 10 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_fmha.py:60
↓ 10 callers
Method
append
(self, na_dim: int)
scripts/autogen_reference_fna.py:298
↓ 10 callers
Method
append
(self, sm: int)
scripts/autogen_fmha.py:280
↓ 10 callers
Method
apply
csrc/include/natten/cuda/fna/epilogue/epilogue_pipelined.h:85
↓ 10 callers
Function
attention
Runs standard dot product attention. This operation is used to implement neighborhood cross attention, in which we allow every token to inter
src/natten/functional.py:74
↓ 10 callers
Function
can_run_flex_attention
( query: Tensor, key: Tensor, value: Tensor, torch_compile: bool, is_causal: bool = False,
src/natten/backends/configs/checks.py:598
↓ 10 callers
Method
is_valid
csrc/include/natten/cuda/fmha_hopper/kernel/fmha_tile_scheduler.hpp:73
↓ 10 callers
Function
layout_acc_mn
csrc/include/natten/cuda/fmha_hopper/collective/fmha_common.hpp:127
↓ 10 callers
Function
na_tensor_checks
( query: Tensor, key: Tensor, value: Tensor, must_match_head_dims: bool = False, supports_
src/natten/utils/checks.py:85
↓ 10 callers
Method
num_splits_key_device
csrc/include/natten/cuda/fmha/kernel_backward.h:673
↓ 10 callers
Method
store
Stores a fragment to memory
csrc/include/natten/cuda/fna/epilogue/predicated_tile_iterator.h:484
↓ 10 callers
Function
tuple_add
csrc/include/natten/cuda/fna_blackwell/collective/fna_fusion.hpp:63
↓ 9 callers
Method
append
(self, dtype: DataType)
scripts/autogen_blackwell_fmha_bwd.py:295
↓ 9 callers
Method
append
(self, dtype: DataType)
scripts/autogen_blackwell_fmha.py:267
↓ 9 callers
Method
append
(self, dtype: DataType)
scripts/autogen_hopper_fmha_bwd.py:277
↓ 9 callers
Method
append
(self, dtype: DataType)
scripts/autogen_hopper_fmha.py:313
↓ 9 callers
Function
fmha_tensor_checks
( query: Tensor, key: Tensor, value: Tensor, must_match_head_dims: bool = False, supports_
src/natten/utils/checks.py:185
↓ 9 callers
Function
is_torch_compiling
()
src/natten/utils/environment.py:74
↓ 9 callers
Function
mul_tuple
(X: tuple, Y: tuple)
src/natten/utils/tuples.py:36
↓ 9 callers
Function
neighborhood_attention_generic
( query: Tensor, key: Tensor, value: Tensor, kernel_size: DimensionTypeOrDed, stride: Dime
src/natten/functional.py:354
↓ 9 callers
Method
set_mask
Sets the predicate mask, overriding value stored in predicate iterator
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:872
↓ 9 callers
Method
warning
(self, *args, **kwargs)
src/natten/utils/log.py:128
↓ 8 callers
Function
_get_log_pipe
()
src/natten/utils/log.py:73
↓ 8 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_fmha_varlen.py:56
↓ 8 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_hopper_fna.py:44
↓ 8 callers
Function
_reset_everything
(random_seed: int = 42, torch_seed: int = 42)
tests/test_blackwell_fna.py:45
↓ 8 callers
Method
add_pointer_offset
Adds a pointer offset in units of Element
csrc/include/natten/cuda/fna/epilogue/predicated_tile_iterator.h:299
↓ 8 callers
Function
getQueryStart
Iteration order logic
csrc/include/natten/cuda/fna/kernel_backward.h:2337
↓ 8 callers
Method
get_mask
Gets the mask
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:878
↓ 8 callers
Method
get_trip_count
csrc/include/natten/cuda/fmha_hopper/collective/fmha_fusion.hpp:121
↓ 8 callers
Function
layout_acc_mn
csrc/include/natten/cuda/fna_hopper/collective/fna_common.hpp:170
↓ 8 callers
Method
load
Loads a fragment from memory
csrc/include/natten/cuda/fna/epilogue/predicated_tile_iterator.h:379
↓ 8 callers
Method
reset
()
src/natten/context.py:46
↓ 8 callers
Function
reset_torch_compile
(cache_size_limit, recompile_limit: int | None = None)
tests/utils.py:37
↓ 8 callers
Method
set_residual_tile
csrc/include/natten/cuda/fna/iterators/predicated_tile_iterator_residual_last.h:553
↓ 8 callers
Method
step
csrc/include/natten/cuda/fna_hopper/collective/fna_collective_load.hpp:198
↓ 8 callers
Method
step
csrc/include/natten/cuda/fmha_hopper/collective/fmha_collective_load.hpp:189
↓ 8 callers
Function
tuple_mul
csrc/include/natten/cuda/fna_hopper/collective/fna_common.hpp:80
↓ 8 callers
Function
tuple_mul
csrc/include/natten/cuda/fna_blackwell/collective/fna_fusion.hpp:69
↓ 7 callers
Method
_test_backend_against_natten
( self, batch, heads, head_dim, seqlen_q, seqlen_kv, i
tests/test_fmha.py:956
↓ 7 callers
Function
apply_variable_length
csrc/include/natten/cuda/fmha_hopper/collective/fmha_varlen.hpp:61
↓ 7 callers
Method
clear_mask
Clears the predicate set efficiently
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:860
↓ 7 callers
Method
enable_mask
Clears the predicate set efficiently
csrc/include/natten/cuda/fmha/iterators/predicated_tile_access_iterator_residual_last.h:866
next →
1–100 of 2,059, ranked by callers