MCPcopy Create free account

hub / github.com/ALRhub/X_IL / functions

Functions1,241 in github.com/ALRhub/X_IL

↓ 194 callersFunctionget_stride
Returns the stride of a JAX array at a given axis. To calculate all strides, use get_strides. Args: array: JAX array or shape-d
agents/backbones/xlstm/mlstm_kernels/jax/stride_utils.py:27
↓ 110 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
agents/utils/ema.py:66
↓ 29 callersFunctionis_power_of_2
(n)
agents/backbones/xlstm/mlstm_kernels/utils/kernels.py:4
↓ 29 callersMethodsigma
(self, t)
agents/models/beso/models/edm_diffusion/gc_sampling.py:537
↓ 22 callersMethod__init__
( self, n_embd: int, bias: bool, dropout: float = 0 )
agents/models/beso/models/networks/transformers/transformer_blocks.py:163
↓ 21 callersFunctionrecursive_dict_list_tuple_apply
Recursively apply functions to a nested dictionary or list or tuple, given a dictionary of {data_type: function_to_apply}. Args:
agents/utils/tensor_util.py:10
↓ 16 callersFunctionjax2triton_dtype
Converts a JAX dtype to a Triton dtype. Args: dtype: JAX dtype. Returns: Triton dtype.
agents/backbones/xlstm/mlstm_kernels/jax/utils.py:23
↓ 16 callersMethodreset
Resets the context of the model.
agents/base_agent.py:142
↓ 16 callersFunctiontorch2triton_dtype
(dtype)
agents/backbones/xlstm/mlstm_kernels/torch/utils.py:59
↓ 13 callersMethoddevice
(self)
agents/encoders/siglip_encoder.py:65
↓ 13 callersFunctionto_d
Converts a denoiser output to a Karras ODE derivative.
agents/models/beso/models/edm_diffusion/gc_sampling.py:91
↓ 12 callersFunctionget_flops_array_for_sizes
( model_size_keys: list[str], flop_computation_dict: dict[str, FLOPsComputation], flop_type: str =
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_flop_analysis.py:92
↓ 11 callersMethod__init__
( self, n_embd: int, bias: bool, use_swish: bool = True,
agents/backbones/transformer/blocks.py:133
↓ 10 callersFunctionfn
(tau)
agents/models/beso/models/edm_diffusion/gc_sampling.py:419
↓ 10 callersFunctionint_or_none
(x)
agents/backbones/xlstm/mlstm_kernels/torch/utils.py:70
↓ 10 callersMethodstep
Updates the step count.
agents/utils/ema.py:136
↓ 10 callersFunctiontensor_or_none
(x)
agents/backbones/xlstm/mlstm_kernels/torch/utils.py:67
↓ 8 callersMethodeps
(self, eps_cache, key, state, action, goal, t, *args, **kwargs)
agents/models/beso/models/edm_diffusion/gc_sampling.py:540
↓ 8 callersFunctionextract
(a, t, x_shape)
agents/models/ddpm/utils.py:25
↓ 8 callersMethodt
(self, sigma)
agents/models/beso/models/edm_diffusion/gc_sampling.py:534
↓ 8 callersMethodupdate
Update currently maintained parameters. Call this every time the parameters are updated, such as the result of the `optimizer
agents/utils/ema.py:35
↓ 7 callersMethod__init__
(self, input_dim, latent_dim)
agents/models/beso/models/edm_diffusion/utils.py:134
↓ 7 callersFunctionappend_zero
(action)
agents/models/beso/models/edm_diffusion/gc_sampling.py:22
↓ 7 callersFunctionexists
(val)
agents/models/beso/models/networks/transformers/position_embeddings.py:33
↓ 7 callersFunctionget_ancestral_step
Calculates the noise level (sigma_down) to step down to and the amount of noise to add (sigma_up) when doing an ancestral sampling step.
agents/models/beso/models/edm_diffusion/gc_sampling.py:102
↓ 7 callersMethodgrid
(meta)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_linear_attention/gla/chunk.py:615
↓ 7 callersMethodset_params
Used to set all or multiple parameters of the benchmark at once.
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/interface.py:42
↓ 6 callersMethod__init__
( self, embed_dim: int, # vision image_resolution: int, vision_layers:
agents/models/beso/models/networks/clip.py:311
↓ 6 callersFunctionconcat_weights_and_biases
( state_dict: dict[str, torch.Tensor], weights_and_biases_regex: str, first_key_ending
agents/backbones/xlstm/utils.py:20
↓ 6 callersFunctionmap_tensor
Apply function @func to torch.Tensor objects in a nested dictionary or list or tuple. Args: x (dict or list or tuple): a possibl
agents/utils/tensor_util.py:46
↓ 6 callersMethodtime
()
agents/backbones/xlstm/mlstm_kernels/utils/time.py:26
↓ 6 callersMethodto_string
(self, short_param_name: bool = True)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/param_handling.py:58
↓ 6 callersFunctiontree_map
(fn, tree, *rest)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/cuda_graphs.py:89
↓ 5 callersMethod__init__
(self, hidden_size)
agents/backbones/xlstm/blocks.py:472
↓ 5 callersMethodbackward
( ctx, matDeltaHtilde: torch.Tensor, vecDeltaM_unused: torch.Tensor, vecDeltaN
agents/backbones/xlstm/mlstm_kernels/torch/parallel/_native_tiled.py:403
↓ 5 callersFunctioncount_flops_mlstm_chunkwise_fw
(L, Nc, dqk, dv, Nh, factor_exp, factor_max, factor_mask)
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:34
↓ 5 callersMethodencode_image
(self, image)
agents/models/beso/models/networks/clip.py:408
↓ 5 callersMethodfrom_pretrained
(cls, pretrained_model_name, device=None, dtype=None, **kwargs)
agents/backbones/mamba/mamba.py:317
↓ 5 callersFunctionload_clip
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
agents/models/beso/models/networks/clip.py:573
↓ 5 callersMethodsample
(self, z, state, latent_goal, null_cond=None, sample_steps=50, cfg=2.0)
agents/models/flow_matching/rf.py:40
↓ 5 callersMethodstate_dict
(self)
agents/utils/ema.py:89
↓ 4 callersMethod_apply_weight_bias
(self, x: torch.Tensor)
agents/backbones/xlstm/components.py:58
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
agents/models/beso/models/networks/clip.py:165
↓ 4 callersMethod_make_modulated_layer
(self, layer, block)
agents/encoders/film_resnets.py:122
↓ 4 callersMethod_make_modulated_layer
(self, layer, block)
agents/encoders/film_resnets.py:233
↓ 4 callersMethod_make_modulated_layer
(self, layer, block)
agents/models/beso/models/perceptual_encoders/film_resnets.py:122
↓ 4 callersMethod_make_modulated_layer
(self, layer, block)
agents/models/beso/models/perceptual_encoders/film_resnets.py:233
↓ 4 callersMethod_save_or_return
Create plot and save or return it.
agents/utils/visualizer.py:139
↓ 4 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
agents/models/beso/models/edm_diffusion/utils.py:146
↓ 4 callersFunctionapply_rotary_emb
(freqs, t, start_index = 0, scale = 1.)
agents/models/beso/models/networks/transformers/position_embeddings.py:62
↓ 4 callersMethodavailable_kernels
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:65
↓ 4 callersMethodavailable_kernels
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:461
↓ 4 callersMethodbackward
(ctx, do, dht=None)
agents/backbones/xlstm/mlstm_kernels/baselines/flash_linear_attention/gla/chunk.py:703
↓ 4 callersMethodcompute_input_embeddings
Compute the required embeddings for the visual ones and the latent goal.
agents/base_agent.py:59
↓ 4 callersFunctioncount_fw_flops
( flop_computations: FLOPsComputation | list[FLOPsComputation], multiply_by_2: bool = False, )
agents/backbones/xlstm/mlstm_kernels/utils/flops/mlstm_block_flop_counts.py:213
↓ 4 callersFunctionget_stat
(x, mode)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/runtime.py:144
↓ 4 callersMethodpredict
(self, obs_dict: dict[str, torch.Tensor])
agents/base_agent.py:148
↓ 4 callersFunctionreshape_dimensions_single
Reshape selected dimensions in a tensor to a target dimension. Args: x (torch.Tensor): tensor to reshape begin_axis (int): b
agents/utils/tensor_util.py:482
↓ 3 callersMethod__init__
(self, dim)
agents/utils/time_embedding.py:9
↓ 3 callersMethod__init__
(self, input_size, hidden_size)
agents/encoders/film_resnets.py:31
↓ 3 callersMethod__init__
(self, num_features, condition_dim)
agents/encoders/pretrained_resnets.py:7
↓ 3 callersMethod__init__
(self, input_size, hidden_size)
agents/models/beso/models/perceptual_encoders/film_resnets.py:31
↓ 3 callersMethod_check_success
(self)
environments/wrappers/robosuite_wrapper.py:53
↓ 3 callersMethod_generate_trace
(self, pointcloud, color:tuple=None, size=5, opacity=0.7)
utils/visualizer/visualizer/pointcloud.py:19
↓ 3 callersFunction_mlstm_chunkwise_fwbw_generator
(autocast_kernel_dtype=torch.float16)
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_limit_chunk/fwbw.py:16
↓ 3 callersFunction_mlstm_chunkwise_fwbw_generator
(autocast_kernel_dtype=torch.bfloat16)
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/triton_xl_chunk/fwbw.py:16
↓ 3 callersFunction_mlstm_chunkwise_fwbw_generator
(autocast_kernel_dtype=torch.float32)
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/fwbw.py:34
↓ 3 callersFunction_mlstm_parallel_fwbw_generator
(autocast_kernel_dtype=torch.float32)
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native_stablef/fwbw.py:21
↓ 3 callersFunction_mlstm_parallel_fwbw_generator
(autocast_kernel_dtype=torch.float16)
agents/backbones/xlstm/mlstm_kernels/torch/parallel/triton_limit_headdim/fwbw.py:15
↓ 3 callersFunction_mlstm_parallel_fwbw_generator
(autocast_kernel_dtype=torch.float32)
agents/backbones/xlstm/mlstm_kernels/torch/parallel/native/fwbw.py:21
↓ 3 callersFunction_mlstm_recurrent_sequence_loop_fw
( mlstm_step_fn: Callable, matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH,
agents/backbones/xlstm/mlstm_kernels/torch/recurrent/native_sequence.py:13
↓ 3 callersMethodavailable_kernels
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/training_kernel_benchmarks.py:261
↓ 3 callersMethodavailable_kernels
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/inference_kernel_benchmarks.py:229
↓ 3 callersFunctioncompile_with_cuda_graphs
Compile the provided function with CUDA graphs. Args: fn: The function to compile. Should take no arguments. warmups: The nu
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/cuda_graphs.py:12
↓ 3 callersFunctiondefault_noise_sampler
(x)
agents/models/beso/models/edm_diffusion/gc_sampling.py:97
↓ 3 callersMethoddpm_solver_2_step
(self, state, action, goal, t, t_next, r1=1 / 2, eps_cache=None)
agents/models/beso/models/edm_diffusion/gc_sampling.py:556
↓ 3 callersFunctionget_1D_sine_cosine
(dim: int, pos: np.ndarray)
agents/models/beso/models/img_generation/masked_transformer_decoder.py:16
↓ 3 callersMethodget_point_cloud
(self, obs_dict)
environments/wrappers/point_cloud_wrapper.py:30
↓ 3 callersMethodget_scalings
Compute the scalings for the denoising process. Args: sigma: The input sigma. Returns: The computed
agents/models/beso/models/edm_diffusion/score_wrappers.py:31
↓ 3 callersMethodload_state_dict
(self, state_dict)
agents/utils/ema.py:99
↓ 3 callersFunctionmlstm_chunkwise_fw
( matQ: torch.Tensor, # (B, NH, S, DHQK) matK: torch.Tensor, # (B, NH, S, DHQK) matV: torch.Tens
agents/backbones/xlstm/mlstm_kernels/torch/chunkwise/native/fw.py:224
↓ 3 callersMethodprocess_observation
(self, obs_dict)
environments/wrappers/robosuite_wrapper.py:43
↓ 3 callersMethodrun_benchmark
Runs the benchmark and returns the runtime in milliseconds.
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/interface.py:57
↓ 3 callersFunctionsavefig
(fig, filename: str)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/plot_results.py:47
↓ 3 callersFunctionsoft_cap
Soft caps a tensor to a value. Performs a tanh operation on the logits and scales the result to the cap value. Common technique in attention
agents/backbones/xlstm/components.py:5
↓ 2 callersMethod__init__
( self, num_features: int, eps: float = 1e-6, use_weight: bool = True,
agents/backbones/xlstm/components.py:35
↓ 2 callersMethod__init__
Simple block wrapping a mixer class with LayerNorm/RMSNorm and residual connection" This Block has a slightly different structure co
agents/backbones/mamba/blocks.py:11
↓ 2 callersMethod__init__
(self, dim: int, eps: float = 1e-8)
agents/models/beso/models/networks/transformers/utils.py:31
↓ 2 callersMethod__init__
( self, dim, custom_freqs = None, freqs_for = 'lang', theta = 10000,
agents/models/beso/models/networks/transformers/position_embeddings.py:84
↓ 2 callersMethod__init__
( self, device: torch.device, visual_features: int, freeze_backbone: bool = True, model_name: str = "R
agents/models/beso/models/perceptual_encoders/vision_clip.py:9
↓ 2 callersFunction_attn_bwd_dkdv
( dk, dv, # Q, k, v, sm_scale, # DO, # M, D, # # shared by Q/K/V/D
agents/backbones/xlstm/mlstm_kernels/baselines/flash_attention/triton_tutorial.py:279
↓ 2 callersFunction_attn_bwd_dq
( dq, q, K, V, # do, m, D, # shared by Q/K/V/DO. stride_tok, stride_d
agents/backbones/xlstm/mlstm_kernels/baselines/flash_attention/triton_tutorial.py:344
↓ 2 callersFunction_attn_fwd_inner
( acc, l_i, m_i, q, # K_block_ptr, V_block_ptr, # start_m, qk_scale, #
agents/backbones/xlstm/mlstm_kernels/baselines/flash_attention/triton_tutorial.py:33
↓ 2 callersFunction_create_module_sequence_backend_registry
()
agents/backbones/xlstm/mlstm_kernels/torch/__init__.py:7
↓ 2 callersFunction_create_module_sequence_backend_registry
()
agents/backbones/xlstm/mlstm_kernels/jax/__init__.py:7
↓ 2 callersMethod_decode_latents
Decodes latent samples into images. Parameters ---------- latent_samples : torch.autograd.Variable Samples from l
agents/utils/visualizer.py:156
↓ 2 callersMethod_get_benchmark_fn_context_manager
(self)
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/huggingface_model_benchmark.py:292
↓ 2 callersMethod_get_loss_fn
By default use the sum of the output as loss.
agents/backbones/xlstm/mlstm_kernels/utils/benchmark/benchmarks/interface.py:126
↓ 2 callersMethod_get_traversal_range
Return the corresponding traversal range in absolute terms.
agents/utils/visualizer.py:84
↓ 2 callersMethod_layer_normalize
(self, x: torch.Tensor)
agents/backbones/xlstm/components.py:172
next →1–100 of 1,241, ranked by callers