MCPcopy Create free account

hub / github.com/Aveiro-Lin/GraphiContact / functions

Functions11,352 in github.com/Aveiro-Lin/GraphiContact

↓ 2 callersMethodto_sanitized_dict
Sanitized serialization to use with TensorBoard’s hparams
src/transformers/src/transformers/training_args.py:2159
↓ 2 callersMethodtokens
Return the list of tokens (sub-parts of the input strings after word/subword splitting and before conversion to integer indices) at a
src/transformers/src/transformers/tokenization_utils_base.py:301
↓ 2 callersFunctiontop_k_filter
Masks everything but the k top entries as -infinity (1e10). Used to mask logits such that e^-infinity -> 0 won't contribute to the sum of
src/transformers/examples/research_projects/pplm/run_pplm.py:77
↓ 2 callersFunctiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (batch size, vo
src/transformers/src/transformers/generation/utils.py:4846
↓ 2 callersFunctiontorch_pad_and_concatenate
Concatenates `tensor1` and `tensor2` on first axis, applying padding on the second if necessary.
src/transformers/src/transformers/trainer_pt_utils.py:76
↓ 2 callersFunctiontrain
Train the model
src/transformers/examples/research_projects/deebert/run_glue_deebert.py:73
↓ 2 callersMethodtrain
Train method to train the model.
src/transformers/src/transformers/trainer_tf.py:475
↓ 2 callersMethodtrain_from_iterator
Train the model using the given iterator
src/transformers/examples/flax/language-modeling/t5_tokenizer_model.py:89
↓ 2 callersFunctiontrain_transforms
Apply train_transforms across a batch.
src/transformers/examples/pytorch/audio-classification/run_audio_classification.py:320
↓ 2 callersMethodtraining_step
Perform a training step on features and labels. Subclass and override to inject some custom behavior.
src/transformers/src/transformers/trainer_tf.py:630
↓ 2 callersMethodtranslate_batch
Translate a batch of sentences. Mostly a wrapper around :obj:`Beam`. Args: batch (:obj:`Batch`): a batch from a
src/transformers/examples/research_projects/bertabs/modeling_bertabs.py:812
↓ 2 callersFunctiontrim_batch
Remove columns that are populated exclusively by pad_token_id
src/transformers/examples/research_projects/rag-end2end-retriever/utils_rag.py:35
↓ 2 callersFunctiontrim_batch
Remove columns that are populated exclusively by pad_token_id
src/transformers/examples/research_projects/rag/utils_rag.py:35
↓ 2 callersFunctiontry_delete
(f)
src/utils/miscellaneous.py:145
↓ 2 callersFunctiontsv_reader
(tsv_file, sep='\t')
src/utils/tsv_file_ops.py:56
↓ 2 callersFunctiontsv_writer
(values, tsv_file, sep='\t')
src/utils/tsv_file_ops.py:38
↓ 2 callersFunctionunset_hf_deepspeed_config
()
src/transformers/src/transformers/integrations/deepspeed.py:250
↓ 2 callersFunctionunsplit
(img, palette)
src/tools/visualize.py:120
↓ 2 callersMethodupdate
Updates attributes of this class instance with attributes from `kwargs` if they match existing atributtes, returning all the unused k
src/transformers/src/transformers/generation/configuration_utils.py:931
↓ 2 callersMethodupdate_bar
(self, value, comment=None)
src/transformers/src/transformers/utils/notebook.py:169
↓ 2 callersFunctionupdate_version_in_file
Update the version of Transformers in one file. Args: fname (`str`): The path to the file where we want to update the version.
src/transformers/utils/release.py:68
↓ 2 callersFunctionval_transforms
Apply val_transforms across a batch.
src/transformers/examples/pytorch/audio-classification/run_audio_classification.py:334
↓ 2 callersMethodvectorial
src/bitsandbytes/include/Type.h:175
↓ 2 callersFunctionvisualize_mesh
( renderer, images, pred_vertices_full, pred_camera,
src/tools/graphi_inference_rich.py:164
↓ 2 callersFunctionvisualize_mesh
( renderer, images, pred_vertices_full, pred_camera,
src/tools/graphi_inference_behave.py:164
↓ 2 callersFunctionworking_or_temp_dir
(working_dir, use_temp_dir: bool = False)
src/transformers/src/transformers/utils/generic.py:560
↓ 2 callersMethodwrite_line
Write the values in the inner table. Args: values (`Dict[str, float]`): The values to display.
src/transformers/src/transformers/utils/notebook.py:231
↓ 1 callersFunctionExtendSysPath
Temporary add given path to `sys.path`. Usage : ```python with ExtendSysPath("/path/to/dir"): mymodule = importlib.import_m
src/transformers/src/transformers/testing_utils.py:1297
↓ 1 callersMethodMHA_GCN
(self, hidden_states, attention_mask, head_mask=None, history_state=None)
src/modeling/bert/modeling_graphormer.py:134
↓ 1 callersMethod__call__
cam is 3D [f, px, py]
src/tools/new_renderer.py:33
↓ 1 callersMethod__call__
(self, batch)
src/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:104
↓ 1 callersMethod__getattribute__
(cls, key)
src/transformers/src/transformers/utils/import_utils.py:1256
↓ 1 callersFunction__init__
( self, parent, batch_size=13, seq_length=7, is_training=True,
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_flax_{{cookiecutter.lowercase_modelname}}.py:369
↓ 1 callersFunction__init__
( self, parent, batch_size=13, seq_length=7, is_training=True,
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py:733
↓ 1 callersMethod__init__
(self, lib: ct.CDLL)
src/bitsandbytes/bitsandbytes/cextension.py:69
↓ 1 callersMethod__init__
(self, input_features, output_features, bias=True)
src/bitsandbytes/bitsandbytes/research/nn/modules.py:12
↓ 1 callersMethod__init__
(self, dim1, dim2, has_fp16_weights=True, memory_efficient_backward=False, threshold=0.0)
src/bitsandbytes/tests/test_modules.py:19
↓ 1 callersMethod__init__
(self, config)
src/transformers/utils/test_module/custom_modeling.py:11
↓ 1 callersMethod__init__
( self, output_dir: Union[str, Path], save_strategy: Union[str, IntervalStrategy] = "e
src/transformers/src/transformers/keras_callbacks.py:315
↓ 1 callersMethod__init__
( self, initial_learning_rate: float, decay_schedule_fn: Callable, warmup_step
src/transformers/src/transformers/optimization_tf.py:48
↓ 1 callersMethod__init__
( self, dataset: Dataset, batch_size: int = 1, drop_last: bool = False,
src/transformers/src/transformers/trainer_pt_utils.py:700
↓ 1 callersMethod__init__
(self, original_tokenizer)
src/transformers/src/transformers/convert_slow_tokenizer.py:91
↓ 1 callersMethod__init__
(self)
src/transformers/src/transformers/tokenization_utils.py:58
↓ 1 callersMethod__init__
( self, total: int, prefix: Optional[str] = None, leave: bool = True,
src/transformers/src/transformers/utils/notebook.py:101
↓ 1 callersMethod__init__
(self, epsilon: float, filter_value: float = -float("Inf"), min_tokens_to_keep: int = 1)
src/transformers/src/transformers/generation/logits_process.py:620
↓ 1 callersMethod__init__
(self, tokenizer: "AutoTokenizer", skip_prompt: bool = False, **decode_kwargs)
src/transformers/src/transformers/generation/streamers.py:72
↓ 1 callersMethod__init__
(self, args: BenchmarkArguments = None, configs: PretrainedConfig = None)
src/transformers/src/transformers/benchmark/benchmark_utils.py:606
↓ 1 callersMethod__init__
(self, dataset: Dataset, key: str)
src/transformers/src/transformers/pipelines/pt_utils.py:297
↓ 1 callersMethod__init__
( self, messages: Union[str, List[Dict[str, str]]] = None, conversation_id: uuid.UUID = None, **deprec
src/transformers/src/transformers/pipelines/conversational.py:40
↓ 1 callersMethod__init__
(self, config_file_or_dict)
src/transformers/src/transformers/integrations/deepspeed.py:73
↓ 1 callersMethod__init__
(self, config: "PretrainedConfig", task: str = "default", patching_specs: List[PatchingSpec] = None)
src/transformers/src/transformers/onnx/config.py:111
↓ 1 callersMethod__init__
(self, model)
src/transformers/tests/generation/test_tf_utils.py:171
↓ 1 callersMethod__init__
(self, data, batch_size, shuffle=True)
src/transformers/examples/legacy/seq2seq/utils.py:348
↓ 1 callersMethod__init__
(self, label_idx=-1)
src/transformers/examples/legacy/token-classification/tasks.py:13
↓ 1 callersMethod__init__
( self, config: BertConfig, input_shape: Tuple = (1, 1), seed: int = 0, dtype: jnp.dtype = jnp.float32
src/transformers/examples/research_projects/performer/modeling_flax_performer.py:420
↓ 1 callersMethod__init__
(self, config)
src/transformers/examples/research_projects/deebert/src/modeling_highway_roberta.py:25
↓ 1 callersMethod__init__
Reads source and target sequences from txt files.
src/transformers/examples/research_projects/pplm/run_pplm_discrim_train.py:85
↓ 1 callersMethod__init__
(self, hparams, **kwargs)
src/transformers/examples/research_projects/seq2seq-distillation/distillation.py:266
↓ 1 callersMethod__init__
(self, hparams, **kwargs)
src/transformers/examples/research_projects/seq2seq-distillation/finetune.py:378
↓ 1 callersMethod__init__
(self, data, batch_size, shuffle=True)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:330
↓ 1 callersMethod__init__
(self, *args, **kwargs)
src/transformers/examples/research_projects/rag-end2end-retriever/finetune_rag.py:79
↓ 1 callersMethod__init__
(self)
src/transformers/examples/research_projects/rag-end2end-retriever/distributed_ray_retriever.py:14
↓ 1 callersMethod__init__
( self, examples_array, make_doc_fun=None, extra_answer_threshold=3, document_cache=None, training=Tru
src/transformers/examples/research_projects/longform-qa/eli5_utils.py:342
↓ 1 callersMethod__init__
(self, image_size)
src/transformers/examples/research_projects/jax-projects/hybrid_clip/run_hybrid_clip.py:189
↓ 1 callersMethod__init__
(self, config)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_albert.py:63
↓ 1 callersMethod__init__
(self, config)
src/transformers/examples/research_projects/bert-loses-patience/pabee/modeling_pabee_bert.py:68
↓ 1 callersMethod__init__
(self, *args, **kwargs)
src/transformers/examples/research_projects/rag/finetune_rag.py:71
↓ 1 callersMethod__init__
(self)
src/transformers/examples/research_projects/rag/distributed_ray_retriever.py:14
↓ 1 callersMethod__init__
(self, img_file, label_file=None, hw_file=None, linelist_file=None, is_train=True, cv2_output
src/datasets/human_mesh_tsv.py:23
↓ 1 callersMethod__init__
(self, args, img_file, label_file=None, hw_file=None, linelist_file=None, is_train=True, cv2_
src/datasets/hand_mesh_tsv.py:24
↓ 1 callersMethod__iter__
(self)
src/transformers/src/transformers/trainer_pt_utils.py:719
↓ 1 callersMethod__repr__
(self)
src/transformers/examples/legacy/run_swag.py:74
↓ 1 callersMethod__setattr__
(self, name, value)
src/transformers/src/transformers/utils/generic.py:405
↓ 1 callersMethod__setitem__
(self, key, value)
src/transformers/src/transformers/utils/generic.py:411
↓ 1 callersMethod__setstate__
(self, state)
src/bitsandbytes/bitsandbytes/optim/optimizer.py:153
↓ 1 callersMethod__setstate__
(self, state)
src/transformers/src/transformers/feature_extraction_utils.py:99
↓ 1 callersMethod_adapt_logits_for_beam_search
This function can be overwritten in the specific modeling_flax_<model-name>.py classes to allow for custom beam search behavior. Note
src/transformers/src/transformers/generation/flax_utils.py:218
↓ 1 callersMethod_add_dataclass_arguments
(self, dtype: DataClassType)
src/transformers/src/transformers/hf_argparser.py:231
↓ 1 callersFunction_add_missing_period
(line)
src/transformers/examples/research_projects/bertabs/utils_summarization.py:96
↓ 1 callersMethod_add_tokens
(self, new_tokens: Union[List[str], List[AddedToken]], special_tokens: bool = False)
src/transformers/src/transformers/tokenization_utils_base.py:1023
↓ 1 callersMethod_add_tokens
Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they are added to it with indices start
src/transformers/src/transformers/tokenization_utils.py:433
↓ 1 callersMethod_add_vector
Add a vector transform to the base latent and returns the resulting image.
src/transformers/examples/research_projects/vqgan-clip/VQGAN_CLIP.py:131
↓ 1 callersFunction_align_output_features_output_indices
Finds the corresponding `out_features` and `out_indices` for the given `stage_names`. The logic is as follows: - `out_features` not
src/transformers/src/transformers/utils/backbone_utils.py:56
↓ 1 callersMethod_apply_eos_token_mask
(self, scores: tf.Tensor)
src/transformers/src/transformers/generation/tf_logits_process.py:223
↓ 1 callersMethod_approx_sq_grad
(exp_avg_sq_row, exp_avg_sq_col)
src/transformers/src/transformers/optimization.py:643
↓ 1 callersMethod_backward_compatibility_gradient_checkpointing
(self)
src/transformers/src/transformers/modeling_utils.py:1165
↓ 1 callersMethod_base_distribution
(self, distr_args)
src/transformers/src/transformers/time_series_utils.py:96
↓ 1 callersMethod_base_distribution
(self, distr_args)
src/transformers/src/transformers/time_series_utils.py:206
↓ 1 callersMethod_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInputPair], Lis
src/transformers/src/transformers/tokenization_utils_fast.py:469
↓ 1 callersMethod_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInp
src/transformers/src/transformers/tokenization_utils_base.py:3099
↓ 1 callersMethod_batch_prepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, tr
src/transformers/src/transformers/tokenization_utils.py:827
↓ 1 callersMethod_beam_search
This beam search function is heavily inspired by Flax's official example: https://github.com/google/flax/blob/main/examples/wmt/decod
src/transformers/src/transformers/generation/flax_utils.py:746
↓ 1 callersMethod_build_res5_block
(self, cfg)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1308
↓ 1 callersMethod_build_res5_block
(self, cfg)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1308
↓ 1 callersFunction_calc_banned_ngram_tokens
Copied from fairseq for no_repeat_ngram in beam_search
src/transformers/src/transformers/generation/logits_process.py:703
↓ 1 callersMethod_calc_row_banned_bad_tokens
(self, row_input_ids: tf.Tensor)
src/transformers/src/transformers/generation/tf_logits_process.py:327
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1374
↓ 1 callersMethod_calculate_anchors
(self, sizes, aspect_ratios)
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1374
↓ 1 callersFunction_center_to_corners_format_numpy
(bboxes_center: np.ndarray)
src/transformers/src/transformers/image_transforms.py:516
↓ 1 callersFunction_center_to_corners_format_tf
(bboxes_center: "tf.Tensor")
src/transformers/src/transformers/image_transforms.py:526
← previousnext →1,801–1,900 of 11,352, ranked by callers