MCPcopy Create free account

hub / github.com/MINT-SJTU/Evo-RL / functions

Functions5,633 in github.com/MINT-SJTU/Evo-RL

Methodforward
Args: x: (B, C, H, W) image tensor with pixel values in [0, 1]. Returns: (B, D) image feature.
src/lerobot/policies/diffusion/modeling_diffusion.py:495
Methodforward
(self, x: Tensor)
src/lerobot/policies/diffusion/modeling_diffusion.py:556
Methodforward
(self, x)
src/lerobot/policies/diffusion/modeling_diffusion.py:578
Methodforward
Args: x: (B, T, input_dim) tensor for input to the Unet. timestep: (B,) tensor of (timestep_we_are_denoising_from - 1
src/lerobot/policies/diffusion/modeling_diffusion.py:664
Methodforward
Args: x: (B, in_channels, T) cond: (B, cond_dim) Returns: (B, out_channels, T)
src/lerobot/policies/diffusion/modeling_diffusion.py:741
Methodforward
( self, attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | N
src/lerobot/policies/pi0/modeling_pi0.py:437
Methodforward
Do a full training forward pass and compute the loss.
src/lerobot/policies/pi0/modeling_pi0.py:743
Methodforward
Run the batch through the model and compute the loss for training or validation.
src/lerobot/policies/vqbet/modeling_vqbet.py:158
Methodforward
Args: features: (B, C, H, W) input feature maps. Returns: (B, K, 2) image-space coordinates of keypoints.
src/lerobot/policies/vqbet/modeling_vqbet.py:231
Methodforward
(self, batch: dict[str, Tensor], rollout: bool)
src/lerobot/policies/vqbet/modeling_vqbet.py:342
Methodforward
(self, x, **kwargs)
src/lerobot/policies/vqbet/modeling_vqbet.py:478
Methodforward
Args: x: (B, C, H, W) image tensor with pixel values in [0, 1]. Returns: (B, D) image feature.
src/lerobot/policies/vqbet/modeling_vqbet.py:704
Methodforward
(self, input, target)
src/lerobot/policies/vqbet/modeling_vqbet.py:872
Methodforward
(self, x)
src/lerobot/policies/vqbet/vqbet_utils.py:117
Methodforward
(self, x)
src/lerobot/policies/vqbet/vqbet_utils.py:157
Methodforward
(self, input, targets=None)
src/lerobot/policies/vqbet/vqbet_utils.py:203
Methodforward
For given input tensor x, this function will return the quantized output, the indices of the quantized output, and the loss. First, t
src/lerobot/policies/vqbet/vqbet_utils.py:439
Methodforward
( self, x, indices=None, mask=None, sample_codebook_temp=None,
src/lerobot/policies/vqbet/vqbet_utils.py:696
Methodforward
(self, x, sample_codebook_temp=None, mask=None, freeze_codebook=False)
src/lerobot/policies/vqbet/vqbet_utils.py:1374
Methodforward
Run the batch through the model and compute the loss. Returns a dictionary with loss as a tensor, and other information as native floats.
src/lerobot/policies/tdmpc/modeling_tdmpc.py:309
Methodforward
Encode the image and/or state vector. Each modality is encoded into a feature vector of size (latent_dim,) and then a uniform mean is taken
src/lerobot/policies/tdmpc/modeling_tdmpc.py:743
Methodforward
( self, attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | N
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:250
Methodforward
Forward pass for PI0Fast. This implements the Pi0FAST training objective: predict next action token using cross-entropy loss.
src/lerobot/policies/pi0_fast/modeling_pi0_fast.py:484
Methodforward
Do a full training forward pass and compute the loss (batch_size x num_steps x num_motors)
src/lerobot/policies/smolvla/modeling_smolvla.py:756
Methodforward
( self, attention_mask: torch.Tensor | None = None, position_ids: torch.LongTensor | N
src/lerobot/policies/smolvla/smolvlm_with_expert.py:404
Methodforward
(self, batch: dict[str, Tensor], reduction: str = "mean")
src/lerobot/policies/evo1/modeling_evo1.py:358
Methodforward
( self, fused_tokens: torch.Tensor, state: torch.Tensor | None = None, actions
src/lerobot/policies/evo1/evo1_model.py:191
Methodforward
(self, seq_len: int)
src/lerobot/policies/evo1/flow_matching.py:18
Methodforward
(self, x: torch.Tensor, category_id: torch.LongTensor)
src/lerobot/policies/evo1/flow_matching.py:47
Methodforward
(self, x: torch.Tensor, category_id: torch.LongTensor)
src/lerobot/policies/evo1/flow_matching.py:77
Methodforward
(self, action_seq: torch.Tensor, category_id: torch.LongTensor)
src/lerobot/policies/evo1/flow_matching.py:99
Methodforward
(self, action_tokens: torch.Tensor, context_tokens: torch.Tensor, time_emb: torch.Tensor)
src/lerobot/policies/evo1/flow_matching.py:128
Methodforward
( self, fused_tokens: torch.Tensor, state: torch.Tensor = None, actions_gt: to
src/lerobot/policies/evo1/flow_matching.py:235
Methodforward
(self, x)
src/lerobot/policies/wall_x/modeling_wall_x.py:99
Methodforward
Process action sequences with noise injection for training. Args: action_chunk: Action sequences [batch, seq_len, action
src/lerobot/policies/wall_x/modeling_wall_x.py:156
Methodforward
Main forward pass dispatcher for different execution modes. This method routes execution to appropriate forward functions based on t
src/lerobot/policies/wall_x/modeling_wall_x.py:1352
Methodforward
(self, hidden_state)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:64
Methodforward
(self, hidden_states: torch.Tensor)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:91
Methodforward
(self, seqlen: int)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:110
Methodforward
(self, hidden_states)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:125
Methodforward
(self, x: torch.Tensor)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:147
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, max_seqlen: int
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:169
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, max_seqlen: int
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:235
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, max_seqlen: int
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:294
Methodforward
( self, hidden_states: torch.Tensor, cu_seqlens: torch.Tensor, max_seqlen: int
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:354
Methodforward
Args: hidden_states (`torch.Tensor` of shape `(seq_len, hidden_size)`): The final hidden states of the model.
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:521
Methodforward
(self, x, position_ids)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:638
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor | None = None,
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:773
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor | None = None,
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:866
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor | None = None,
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:961
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:1074
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: torch.Tensor | None = None
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:1171
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:1788
Methodforward
(self, hidden_state)
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:2213
Methodforward
Route different hidden_states to corresponding experts for processing. Args: hidden_states (torch.Tensor): Tensor of sha
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:2228
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:2287
Methodforward
( self, input_ids: torch.LongTensor | None = None, attention_mask: torch.Tensor | None
src/lerobot/policies/wall_x/qwen_model/qwen2_5_vl_moe.py:2445
Methodforward
A forward pass through the Action Chunking Transformer (with optional VAE encoder). `batch` should have the following structure: {
src/lerobot/policies/act/modeling_act.py:378
Methodforward
( self, x: Tensor, pos_embed: Tensor | None = None, key_padding_mask: Tensor | None = None )
src/lerobot/policies/act/modeling_act.py:523
Methodforward
(self, x, pos_embed: Tensor | None = None, key_padding_mask: Tensor | None = None)
src/lerobot/policies/act/modeling_act.py:550
Methodforward
( self, x: Tensor, encoder_out: Tensor, decoder_pos_embed: Tensor | None = Non
src/lerobot/policies/act/modeling_act.py:578
Methodforward
Args: x: (Decoder Sequence, Batch, Channel) tensor of input tokens. encoder_out: (Encoder Sequence, B, C) output feat
src/lerobot/policies/act/modeling_act.py:618
Methodforward
Args: x: A (B, C, H, W) batch of 2D feature map to generate the embeddings for. Returns: A (1, C, H, W) batch
src/lerobot/policies/act/modeling_act.py:703
Methodforward
Forward pass for stage classification. Args: img_seq: Image embeddings (B, N, T, vis_emb_dim) where N=num_cameras
src/lerobot/policies/sarm/modeling_sarm.py:121
Methodforward
Forward pass for subtask progress regression. Args: img_seq: Image embeddings (B, N, T, vis_emb_dim) lang_em
src/lerobot/policies/sarm/modeling_sarm.py:269
Methodforward
Forward pass for SARM reward model training. Uses stage+tau target format where: - Integer part = stage index - Frac
src/lerobot/policies/sarm/modeling_sarm.py:703
Methodforward
(self, x: torch.Tensor)
src/lerobot/policies/xvla/soft_transformer.py:78
Methodforward
Parameters ---------- x : Tensor, shape [batch_size, seq_len, channels] Input sequence. Returns
src/lerobot/policies/xvla/soft_transformer.py:126
Methodforward
Parameters ---------- x : Tensor [B, I] or [B, T, I] domain_id : LongTensor [B], domain indic
src/lerobot/policies/xvla/soft_transformer.py:231
Methodforward
Parameters ---------- x : Tensor, [B, T, H] Returns ------- Tensor, [B, T, H]
src/lerobot/policies/xvla/soft_transformer.py:274
Methodforward
Forward pass. Inputs ------ domain_id : [B] vlm_features : [B, T_vlm, D] aux_visual_inputs : [B, T_a
src/lerobot/policies/xvla/soft_transformer.py:349
Methodforward
Forward pass for the XVLA model.
src/lerobot/policies/xvla/modeling_xvla.py:194
Methodforward
(self, batch: dict[str, Tensor])
src/lerobot/policies/xvla/modeling_xvla.py:386
Methodforward
(self, x)
src/lerobot/policies/xvla/modeling_florence2.py:73
Methodforward
pixel_values: (batch_size, height, width, num_channels) returns: (batch_size, height, width, embedding_dim * 2)
src/lerobot/policies/xvla/modeling_florence2.py:90
Methodforward
Args: seq_embeds: The sequence embeddings in order. Allowed size: 1. [T, D], where T is the length of the sequenc
src/lerobot/policies/xvla/modeling_florence2.py:145
Methodforward
Args: seq_embeds: The sequence embeddings in order. Allowed size: 1. [T, D], where T is the length of the sequenc
src/lerobot/policies/xvla/modeling_florence2.py:182
Methodforward
(self, *inputs)
src/lerobot/policies/xvla/modeling_florence2.py:207
Methodforward
(self, x, *args, **kwargs)
src/lerobot/policies/xvla/modeling_florence2.py:220
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:274
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:301
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:326
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:373
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:414
Methodforward
(self, x, size)
src/lerobot/policies/xvla/modeling_florence2.py:489
Methodforward
(self, x)
src/lerobot/policies/xvla/modeling_florence2.py:648
Methodforward
`input_ids' shape is expected to be [bsz x seqlen].
src/lerobot/policies/xvla/modeling_florence2.py:709
Methodforward
(self, input_ids: torch.Tensor)
src/lerobot/policies/xvla/modeling_florence2.py:734
Methodforward
Input shape: Batch x Time x Channel
src/lerobot/policies/xvla/modeling_florence2.py:775
Methodforward
( self, hidden_states: torch.Tensor, key_value_states: torch.Tensor | None = None,
src/lerobot/policies/xvla/modeling_florence2.py:917
Methodforward
Input shape: Batch x Time x Channel
src/lerobot/policies/xvla/modeling_florence2.py:1127
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
src/lerobot/policies/xvla/modeling_florence2.py:1258
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
src/lerobot/policies/xvla/modeling_florence2.py:1341
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
src/lerobot/policies/xvla/modeling_florence2.py:1520
Methodforward
r""" Args: input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): Indices of input sequence toke
src/lerobot/policies/xvla/modeling_florence2.py:1706
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: torch.Tensor | None = None
src/lerobot/policies/xvla/modeling_florence2.py:1987
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing the masked language mo
src/lerobot/policies/xvla/modeling_florence2.py:2127
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
src/lerobot/policies/xvla/modeling_florence2.py:2587
Methodforward
Alias for compute_loss.
src/lerobot/policies/xvla/action_hub.py:80
Methodforward
Training forward pass. Delegates to Isaac-GR00T model.forward when inputs are compatible.
src/lerobot/policies/groot/modeling_groot.py:225
← previousnext →3,201–3,300 of 5,633, ranked by callers