MCPcopy Create free account

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

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

↓ 1 callersFunctionextract_hyperparameters_from_keras
(model)
src/transformers/src/transformers/modelcard.py:802
↓ 1 callersFunctionextract_hyperparameters_from_trainer
(trainer)
src/transformers/src/transformers/modelcard.py:858
↓ 1 callersFunctionextract_info_from_url
Extract repo_name, revision and filename from an url.
src/transformers/src/transformers/utils/hub.py:1078
↓ 1 callersMethodextract_outputs
You can override this method in your custom class of [`RemoteTool`] to apply some custom post-processing of the outputs of the endpoi
src/transformers/src/transformers/tools/base.py:409
↓ 1 callersFunctionextract_rouge_mid_statistics
(dct)
src/transformers/examples/legacy/seq2seq/utils.py:500
↓ 1 callersFunctionextract_rouge_mid_statistics
(dct)
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:481
↓ 1 callersFunctionextract_warnings
Extract warnings from all artifact files
src/transformers/utils/extract_warnings.py:67
↓ 1 callersFunctionextract_warnings_from_single_artifact
Extract warnings from a downloaded artifact (in .zip format)
src/transformers/utils/extract_warnings.py:15
↓ 1 callersMethodfeature_to_task
(feature: str)
src/transformers/src/transformers/onnx/features.py:583
↓ 1 callersMethodfetch_inputs
(self, input_ids: list)
src/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:120
↓ 1 callersFunctionffmpeg_microphone
Helper function ro read raw microphone data.
src/transformers/src/transformers/pipelines/audio_utils.py:49
↓ 1 callersFunctionffmpeg_read
Helper function to read an audio file through ffmpeg.
src/transformers/src/transformers/pipelines/audio_classification.py:30
↓ 1 callersFunctionfill_mask
(masked_input, model, tokenizer, topk=5)
src/transformers/examples/legacy/run_camembert.py:7
↓ 1 callersMethodfill_mask_with_duplicate_targets_and_top_k
(self, model, tokenizer)
src/transformers/tests/pipelines/test_pipelines_fill_mask.py:411
↓ 1 callersMethodfill_mask_with_multiple_masks
(self, model, tokenizer)
src/transformers/tests/pipelines/test_pipelines_fill_mask.py:423
↓ 1 callersMethodfill_with_past_key_values_
Fill the input_or_outputs mapping with past_key_values dynamic axes considering. Args: inputs_or_outputs: The mapping to
src/transformers/src/transformers/onnx/config.py:550
↓ 1 callersMethodfill_with_past_key_values_
(self, inputs_or_outputs: Mapping[str, Mapping[int, str]], direction: str)
src/transformers/src/transformers/onnx/config.py:709
↓ 1 callersFunctionfilter_outputs_from_example
Removes the lines testing an output with the doctest syntax in a code sample when it's set to `None`.
src/transformers/src/transformers/utils/doc.py:1050
↓ 1 callersFunctionfind_all_best_thresh
(main_eval, preds, exact_raw, f1_raw, na_probs, qid_to_has_ans)
src/transformers/src/transformers/data/metrics/squad_metrics.py:214
↓ 1 callersFunctionfind_all_documented_objects
Parse the content of all doc files to detect which classes and functions it documents. Returns: `List[str]`: The list of all object
src/transformers/utils/check_repo.py:873
↓ 1 callersFunctionfind_batch_size
Find the first dimension of a tensor in a nested list/tuple/dict of tensors.
src/transformers/src/transformers/trainer_pt_utils.py:134
↓ 1 callersFunctionfind_block_ending
(lines, start_idx, indent_level)
src/transformers/utils/add_pipeline_model_mapping_to_test.py:169
↓ 1 callersFunctionfind_cudart_libraries
Searches for a cuda installations, in the following order of priority: 1. active conda env 2. LD_LIBRARY_PATH 3. any othe
src/bitsandbytes/bitsandbytes/diagnostics/cuda.py:83
↓ 1 callersFunctionfind_executable_batch_size
Args: A basic decorator that will try to execute `function`. If it fails from exceptions related to out-of-memory or CUDNN, the batch siz
src/transformers/src/transformers/trainer_utils.py:695
↓ 1 callersFunctionfind_extremes
Call the _find_cluster_extremes_shared function in a parallel fashion. Args: cluster_list (List[List[Dict]]): each cluster is
src/transformers/examples/research_projects/codeparrot/scripts/minhash_deduplication.py:173
↓ 1 callersFunctionfind_nearest_training
(question, n_results=10)
src/transformers/examples/research_projects/longform-qa/eli5_app.py:81
↓ 1 callersFunctionfind_pruneable_heads_and_indices
Finds the heads and their indices taking `already_pruned_heads` into account. Args: heads (`List[int]`): List of the indices of head
src/transformers/src/transformers/pytorch_utils.py:245
↓ 1 callersFunctionfind_source_file
Finds the source file of an object. Args: obj (`Any`): The object whose source file we are looking for. Returns: `Path`
src/transformers/utils/check_docstrings.py:977
↓ 1 callersFunctionfind_submodule_and_param_name
A helper util to find the last sub-module and the param/buffer name. If `start_prefix` is supplied it'll be removed from the start of the key
src/transformers/src/transformers/modeling_utils.py:582
↓ 1 callersFunctionfind_test_class
Find a test class in `test_file` to which we will add `pipeline_model_mapping`.
src/transformers/utils/add_pipeline_model_mapping_to_test.py:152
↓ 1 callersFunctionfind_tested_models
Parse the content of test_file to detect what's in `all_model_classes`. This detects the models that inherit from the common test class.
src/transformers/utils/check_repo.py:526
↓ 1 callersFunctionfind_top_rpn_proposals
Args: proposals (list[Tensor]): (L, N, Hi*Wi*A, 4). pred_objectness_logits: tensors of length L. nms_thresh (float): IoU thres
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:254
↓ 1 callersFunctionfind_top_rpn_proposals
Args: proposals (list[Tensor]): (L, N, Hi*Wi*A, 4). pred_objectness_logits: tensors of length L. nms_thresh (float): IoU thres
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:254
↓ 1 callersFunctionfind_version
(fname)
setup.py:26
↓ 1 callersFunctionfinetune
fine-tune with IGF if secondary_learner is not None, else standard fine-tuning Args: model: pre-trained GPT-2 model train_da
src/transformers/examples/research_projects/information-gain-filtration/run_clm_igf.py:145
↓ 1 callersFunctionfit
(model, loss, opt, train_dataset, epochs, train_batch_size, max_steps=None)
src/transformers/tests/sagemaker/scripts/tensorflow/run_tf_dist.py:23
↓ 1 callersFunctionfix_docstring
Fixes the docstring of an object by replacing its arguments documentaiton by the one matched with the signature. Args: obj (`Any`):
src/transformers/utils/check_docstrings.py:1108
↓ 1 callersFunctionflatten_list
(summary_ids: List[List])
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:439
↓ 1 callersFunctionflatten_list
(summary_ids: List[List])
src/transformers/examples/research_projects/rag/utils_rag.py:139
↓ 1 callersFunctionflax_shard_checkpoint
Splits a model state dictionary in sub-checkpoints so that the final size of each sub-checkpoint does not exceed a given size. The sub-checkp
src/transformers/src/transformers/modeling_flax_utils.py:101
↓ 1 callersMethodfloating_point_ops
For models that inherit from [`PreTrainedModel`], uses that method to compute the number of floating point operations for every backw
src/transformers/src/transformers/trainer.py:3417
↓ 1 callersMethodfoo
(self, pixel_values, output_attentions=None, output_hidden_states=None, return_dict=None)
src/transformers/tests/test_modeling_tf_utils.py:147
↓ 1 callersMethodformat_dict
(d)
src/transformers/src/transformers/commands/env.py:142
↓ 1 callersFunctionformat_mrpc
(data_dir, path_to_data)
src/transformers/utils/download_glue_data.py:57
↓ 1 callersFunctionformat_rouge_scores
(scores)
src/transformers/examples/research_projects/bertabs/run_summarization.py:145
↓ 1 callersFunctionformat_summary
Transforms the output of the `from_batch` function into nicely formatted summaries.
src/transformers/examples/research_projects/bertabs/run_summarization.py:126
↓ 1 callersFunctionformat_with_label
(label: str, value: Any)
src/bitsandbytes/tests/helpers.py:34
↓ 1 callersFunctionforward
( self, input_ids=None, token_type_ids=None, position_ids=None, inputs_embeds=None, past_key_values_le
src/transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_{{cookiecutter.lowercase_modelname}}.py:164
↓ 1 callersFunctionforward
(*args, **kwargs)
src/transformers/examples/research_projects/jax-projects/big_bird/evaluate.py:104
↓ 1 callersMethodforward
(self, *args, **kwargs)
src/tools/smpl.py:98
↓ 1 callersMethodforward
Sends the inputs through the `model`.
src/transformers/src/transformers/tools/base.py:545
↓ 1 callersMethodforward
(self, x)
src/transformers/tests/test_modeling_utils.py:99
↓ 1 callersMethodforward
(self, input, *args, **kwargs)
src/transformers/tests/quantization/bnb/test_4bit.py:67
↓ 1 callersMethodforward
(self, input, *args, **kwargs)
src/transformers/tests/quantization/bnb/test_mixed_int8.py:76
↓ 1 callersMethodforward
(self, input_ids, foo=None, **kwargs)
src/transformers/tests/generation/test_utils.py:2987
↓ 1 callersMethodforward
Forward pass through the secondary learner Args: context: Context input to the secondary learner Returns:
src/transformers/examples/research_projects/information-gain-filtration/igf/igf.py:383
↓ 1 callersMethodforward
Args: images (torch.Tensor): input images of length `N` features (dict[str: Tensor]) gt_instances
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1557
↓ 1 callersMethodforward
Args: images (torch.Tensor): input images of length `N` features (dict[str: Tensor]) gt_instances
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1557
↓ 1 callersMethodfreeze
(self)
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:813
↓ 1 callersFunctionfreeze_embeds
Freeze token embeddings and positional embeddings for bart, just token embeddings for t5.
src/transformers/examples/legacy/seq2seq/utils.py:565
↓ 1 callersFunctionfreeze_embeds
Freeze token embeddings and positional embeddings for bart, just token embeddings for t5.
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:546
↓ 1 callersFunctionfreeze_pos_embeddings
(student, args)
src/transformers/examples/research_projects/distillation/train.py:85
↓ 1 callersFunctionfreeze_token_type_embeddings
(student, args)
src/transformers/examples/research_projects/distillation/train.py:92
↓ 1 callersMethodfrom_dict
Constructs a `Config` from a Python dictionary of parameters.
src/modeling/bert/modeling_utils.py:184
↓ 1 callersMethodfrom_dict
unpacks components of state_dict into QuantState where necessary, convert into strings, torch.dtype, ints, etc. qs_dict: bas
src/bitsandbytes/bitsandbytes/functional.py:687
↓ 1 callersMethodfrom_dict
Instantiates a type of [`~image_processing_utils.ImageProcessingMixin`] from a Python dictionary of parameters. Args: im
src/transformers/src/transformers/image_processing_utils.py:384
↓ 1 callersMethodfrom_dict
Instantiates a type of [`~feature_extraction_utils.FeatureExtractionMixin`] from a Python dictionary of parameters. Args:
src/transformers/src/transformers/feature_extraction_utils.py:549
↓ 1 callersMethodfrom_dict
Instantiates a [`PretrainedConfig`] from a Python dictionary of parameters. Args: config_dict (`Dict[str, Any]`):
src/transformers/src/transformers/configuration_utils.py:727
↓ 1 callersMethodfrom_hub
Loads a tool defined on the Hub. Args: repo_id (`str`): The name of the repo on the Hub where your tool
src/transformers/src/transformers/tools/base.py:177
↓ 1 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
src/modeling/bert/modeling_utils.py:192
↓ 1 callersMethodfrom_name
(cls, name: str)
src/transformers/examples/research_projects/wav2vec2/run_asr.py:169
↓ 1 callersMethodfrom_prequantized
( cls, data: torch.Tensor, quantized_stats: Dict[str, Any], requires_grad: boo
src/bitsandbytes/bitsandbytes/nn/modules.py:270
↓ 1 callersMethodfrom_pretrained
r""" Instantiate a processor associated with a pretrained model. <Tip> This class method is simply calling the feature extra
src/transformers/src/transformers/processing_utils.py:169
↓ 1 callersMethodfrom_pretrained
r""" Instantiate a [`~tokenization_utils_base.PreTrainedTokenizerBase`] (or a derived class) from a predefined tokenizer. Arg
src/transformers/src/transformers/tokenization_utils_base.py:1803
↓ 1 callersMethodfrom_str
(version: str)
src/transformers/src/transformers/utils/quantization_config.py:48
↓ 1 callersMethodfrom_text_vision_configs
r""" Instantiate a :class:`HybridCLIPConfig` (or a derived class) from text model configuration and vision model configuration.
src/transformers/examples/research_projects/jax-projects/hybrid_clip/configuration_hybrid_clip.py:89
↓ 1 callersMethodfrom_text_vision_pretrained
Params: text_model_name_or_path (:obj: `str`, `optional`): Information necessary to initiate the text model. Can
src/transformers/examples/research_projects/jax-projects/hybrid_clip/modeling_hybrid_clip.py:304
↓ 1 callersMethodfrom_trainer
( cls, trainer, language=None, license=None, tags=None, model_
src/transformers/src/transformers/modelcard.py:552
↓ 1 callersFunctionfull_text_generation
( model, tokenizer, context=None, num_samples=1, device="cuda", bag_of_words=None,
src/transformers/examples/research_projects/pplm/run_pplm.py:323
↓ 1 callersFunctionfuse_qkv
Adjust quantization ranges to match an implementation where the QKV projections are implemented with a single GEMM. Force the weight and output sc
src/transformers/examples/research_projects/quantization-qdqbert/quant_trainer.py:151
↓ 1 callersFunctiongather_results_from_each_node
(num_replicas, save_dir, timeout)
src/transformers/examples/legacy/seq2seq/run_distributed_eval.py:240
↓ 1 callersFunctiongemm_4bit_inference
src/bitsandbytes/csrc/pythonInterface.cpp:31
↓ 1 callersFunctiongemm_4bit_inference_naive_bf16
src/bitsandbytes/csrc/pythonInterface.cpp:37
↓ 1 callersFunctiongemm_4bit_inference_naive_fp16
src/bitsandbytes/csrc/pythonInterface.cpp:34
↓ 1 callersFunctiongemm_4bit_inference_naive_fp32
src/bitsandbytes/csrc/pythonInterface.cpp:40
↓ 1 callersFunctiongemm_host_fp16
void gemm_host_fp32(int M, int N, int K, float * A, float* B, float * out, int lda, int ldb, int ldc) { gemm_host<float>(M, N, K, A, B, out, lda, l
src/bitsandbytes/csrc/pythonInterface.cpp:28
↓ 1 callersFunctiongen_render
(img, contact_labels_3d_pred, contact_2d_pred_rgb, sem_mask_pred, part_mask_pred, normalize=True)
src/tools/visualize.py:129
↓ 1 callersFunctiongen_rows
()
src/utils/tsv_file_ops.py:75
↓ 1 callersFunctiongeneralized_kernel_feature_creator
Constructs kernel features for fast generalized attention Args: data: input for which features are computes projection_matrix: m
src/transformers/examples/research_projects/performer/modeling_flax_performer_utils.py:144
↓ 1 callersFunctiongenerate
(**kwargs)
src/transformers/examples/tensorflow/translation/run_translation.py:699
↓ 1 callersFunctiongenerate
(**kwargs)
src/transformers/examples/tensorflow/summarization/run_summarization.py:733
↓ 1 callersFunctiongenerate_batch_splits
(samples_idx: np.ndarray, batch_size: int)
src/transformers/examples/research_projects/jax-projects/dataset-streaming/run_mlm_flax_stream.py:267
↓ 1 callersMethodgenerate_cell_anchors
anchors are continuous geometric rectangles centered on one feature map point sample. We can later build the set of anchors
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:1410
↓ 1 callersMethodgenerate_cell_anchors
anchors are continuous geometric rectangles centered on one feature map point sample. We can later build the set of anchors
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:1410
↓ 1 callersMethodgenerate_dummy_inputs_onnxruntime
Generate inputs for ONNX Runtime using the reference model inputs. Override this to run inference with seq2seq models which have the
src/transformers/src/transformers/onnx/config.py:400
↓ 1 callersFunctiongenerate_input
(_question, _context)
src/transformers/examples/pytorch/question-answering/run_seq2seq_qa.py:492
↓ 1 callersFunctiongenerate_lineidx
(filein, idxout)
src/utils/tsv_file.py:14
↓ 1 callersMethodgenerate_many
(self, prompts, stop)
src/transformers/src/transformers/tools/agents.py:359
↓ 1 callersFunctiongenerate_n_pairs
Collecting *n* pairs for training the secondary learner Args: context_len: The maximum total input sequence length after tokenization
src/transformers/examples/research_projects/information-gain-filtration/run_clm_igf.py:49
↓ 1 callersFunctiongenerate_summaries_or_translations
Save model.generate results to <out_file>, and return how long it took.
src/transformers/examples/legacy/seq2seq/run_eval.py:38
← previousnext →2,501–2,600 of 11,352, ranked by callers