MCPcopy Create free account

hub / github.com/OpenDriveLab/ReSim / functions

Functions2,541 in github.com/OpenDriveLab/ReSim

Method__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
sat/vae_modules/cp_enc_dec.py:615
Method__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
sat/vae_modules/cp_enc_dec.py:725
Method__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
sat/vae_modules/cp_enc_dec.py:850
Method__init__
(self, dim, dim_out=None, mult=4, glu=False, dropout=0.0)
sat/vae_modules/attention.py:93
Method__init__
(self, dim, heads=4, dim_head=32)
sat/vae_modules/attention.py:119
Method__init__
(self, in_channels)
sat/vae_modules/attention.py:138
Method__init__
( self, query_dim, context_dim=None, heads=8, dim_head=64, dro
sat/vae_modules/attention.py:175
Method__init__
(self, query_dim, context_dim=None, heads=8, dim_head=64, dropout=0.0, **kwargs)
sat/vae_modules/attention.py:260
Method__init__
( self, dim, n_heads, d_head, dropout=0.0, context_dim=None,
sat/vae_modules/attention.py:346
Method__init__
( self, dim, n_heads, d_head, dropout=0.0, context_dim=None,
sat/vae_modules/attention.py:441
Method__init__
( self, in_channels, n_heads, d_head, depth=1, dropout=0.0,
sat/vae_modules/attention.py:486
Method__init__
( self, ema_decay: Union[None, float] = None, monitor: Union[None, str] = None,
sat/vae_modules/autoencoder.py:39
Method__init__
( self, *args, encoder_config: Dict, decoder_config: Dict, loss_config
sat/vae_modules/autoencoder.py:135
Method__init__
(self, embed_dim: int, **kwargs)
sat/vae_modules/autoencoder.py:434
Method__init__
(self, *args, **kwargs)
sat/vae_modules/autoencoder.py:513
Method__init__
( self, ckpt_path: Union[None, str] = None, ignore_keys: Union[Tuple, list] = (),
sat/vae_modules/autoencoder.py:527
Method__init__
( self, cp_size=0, *args, **kwargs, )
sat/vae_modules/autoencoder.py:579
Method__init__
(self, parameters, deterministic=False)
sat/vae_modules/regularizers.py:11
Method__init__
(self, sample: bool = True)
sat/vae_modules/regularizers.py:91
Method__iter__
(self)
SwissArmyTransformer/sat/data_utils/samplers.py:60
Method__iter__
(self)
SwissArmyTransformer/sat/data_utils/samplers.py:90
Method__iter__
(self)
SwissArmyTransformer/sat/data_utils/samplers.py:124
Method__iter__
(self)
SwissArmyTransformer/sat/data_utils/configure_data.py:419
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/__init__.py:90
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/hf_tokenizer.py:24
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/glm/sp_tokenizer.py:47
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:69
Method__len__
total number of tokens
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:199
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/glm/tokenization_gpt2.py:180
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/glm/tokenization_wordpiece.py:99
Method__len__
total number of tokens
SwissArmyTransformer/sat/tokenization/cogview/unified_tokenizer.py:67
Method__len__
(self)
SwissArmyTransformer/sat/tokenization/cogview/vqvae_tokenizer.py:55
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/samplers.py:69
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/samplers.py:96
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/datasets.py:40
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/datasets.py:64
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/configure_data.py:337
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/configure_data.py:358
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/configure_data.py:378
Method__len__
(self)
SwissArmyTransformer/sat/data_utils/configure_data.py:400
Method__len__
(self)
sat/data_multi.py:68
Method__len__
(self)
sat/data_share.py:257
Method__new__
(cls, clsname, bases, attrs)
SwissArmyTransformer/sat/model/registry.py:32
Method__repr__
(self)
SwissArmyTransformer/examples/yolos/datasets_/transforms.py:311
Method__repr__
(self)
SwissArmyTransformer/examples/yolos/util/misc.py:302
Method__repr__
(self)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:138
Method__repr__
(self)
SwissArmyTransformer/sat/model/registry.py:26
Method__repr__
(self)
SwissArmyTransformer/sat/training/model_io.py:29
Method__str__
(self)
SwissArmyTransformer/examples/yolos/util/misc.py:79
Method__str__
(self)
SwissArmyTransformer/examples/yolos/util/misc.py:178
Method__str__
(self)
SwissArmyTransformer/examples/mae/util/misc.py:77
Method__str__
(self)
SwissArmyTransformer/examples/mae/util/misc.py:108
Method__str__
(self)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:72
Function_builder
()
SwissArmyTransformer/sat/ops/ops_builder/__init__.py:32
Function_conv_filter
convert patch embedding weight from manual patchify + linear proj to conv
SwissArmyTransformer/examples/yolos/models/backbone.py:394
Method_decode
(self, ids)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:426
Method_decode
(self, ids)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:479
Method_decode
(self, ids)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:570
Function_encode
(text)
SwissArmyTransformer/examples/roberta/finetune_roberta_wsc.py:136
Method_encode
(self, text)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:423
Method_encode
(self, text)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:475
Method_encode
(self, text)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:540
Function_find_children
Find all modules of a certain class (or union of classes). Returns all matching modules, along with the parent of those moduless and the
sat/sgm/modules/diffusionmodules/lora.py:217
Function_find_modules_v2
Find all modules of a certain class (or union of classes) that are direct or indirect descendants of other modules of a certain class (or uni
sat/sgm/modules/diffusionmodules/lora.py:234
Method_forward
(self, x, context=None, additional_tokens=None, n_times_crossframe_attn_in_self=0)
sat/sgm/modules/attention.py:419
Method_forward
(self, x, context=None)
sat/sgm/modules/attention.py:470
Method_forward
(self, x, emb)
sat/sgm/modules/diffusionmodules/openaimodel.py:320
Method_forward
(self, x)
sat/sgm/modules/diffusionmodules/openaimodel.py:392
Method_forward
(self, x, context=None, additional_tokens=None, n_times_crossframe_attn_in_self=0)
sat/vae_modules/attention.py:419
Method_forward
(self, x, context=None)
sat/vae_modules/attention.py:470
Method_fuse_lora
(self, lora_scale=1.0)
sat/sgm/modules/diffusionmodules/lora.py:96
Method_fuse_lora
(self, lora_scale=1.0)
sat/sgm/modules/diffusionmodules/lora.py:166
Function_gather
(input_, dim)
sat/sgm/modules/cp_enc_dec.py:104
Function_gather
(input_, dim)
sat/vae_modules/cp_enc_dec.py:102
Method_init_weights
(self, m)
SwissArmyTransformer/examples/yolos/models/backbone.py:201
Method_init_weights
(self, m)
SwissArmyTransformer/examples/mae/models_mae.py:87
Method_init_weights
(self, weight, **kwargs)
SwissArmyTransformer/sat/model/official/t5_model.py:178
Method_init_weights
(self, weight, module, name)
SwissArmyTransformer/sat/model/official/t5_model.py:228
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/tests/test_triton_rotary_embedding.py:49
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/position_embedding/rotary_embeddings.py:23
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/finetune/lora2.py:23
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/finetune/lora2.py:30
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/finetune/lora2.py:47
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/finetune/lora2.py:62
Method_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
SwissArmyTransformer/sat/model/finetune/lora2.py:124
Method_make_attn
(self)
sat/sgm/modules/autoencoding/temporal_ae.py:306
Method_make_conv
(self)
sat/sgm/modules/autoencoding/temporal_ae.py:316
Method_make_resblock
(self)
sat/sgm/modules/autoencoding/temporal_ae.py:322
Method_reorder_cache
This function is used to re-order the `past_key_values` cache if [`~PreTrainedModel.beam_search`] or [`~PreTrainedModel.beam_sample`]
SwissArmyTransformer/examples/chatglm/chat_model.py:133
Method_reorder_cache
This function is used to re-order the `past_key_values` cache if [`~PreTrainedModel.beam_search`] or [`~PreTrainedModel.beam_sample`]
SwissArmyTransformer/examples/chatglm2/chat_model.py:133
Method_save_to_state_dict
(self, destination, prefix, keep_vars)
SwissArmyTransformer/sat/model/finetune/lora2.py:54
Function_split
(input_, dim)
sat/sgm/modules/cp_enc_dec.py:78
Function_split
(input_, dim)
sat/vae_modules/cp_enc_dec.py:76
Method_transpose_for_scores
Transpose a 3D tensor [b, s, np*hn] into a 4D tensor with size [b, np, s, hn].
SwissArmyTransformer/sat/model/transformer.py:178
Method_unfuse_lora
(self)
sat/sgm/modules/diffusionmodules/lora.py:122
Method_unfuse_lora
(self)
sat/sgm/modules/diffusionmodules/lora.py:190
Method_update_model_kwargs_for_generation
( self, outputs: ModelOutput, model_kwargs: Dict[str, Any], is_encoder_decoder
SwissArmyTransformer/examples/chatglm/chat_model.py:53
Method_update_model_kwargs_for_generation
( self, outputs: ModelOutput, model_kwargs: Dict[str, Any], is_encoder_decoder
SwissArmyTransformer/examples/chatglm2/chat_model.py:52
Method_update_scale
(self, scale)
sat/sgm/modules/diffusionmodules/openaimodel.py:950
Methodabsolute_name
(self)
SwissArmyTransformer/sat/ops/ops_builder/fused_ema_adam.py:13
← previousnext →1,501–1,600 of 2,541, ranked by callers