MCPcopy Create free account

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

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

↓ 3 callersFunctionis_sigopt_available
()
src/transformers/src/transformers/integrations/integration_utils.py:115
↓ 3 callersFunctionis_tensor
Tests if `x` is a `torch.Tensor`, `tf.Tensor`, `jaxlib.xla_extension.DeviceArray` or `np.ndarray` in the order defined by `infer_framework_fr
src/transformers/src/transformers/utils/generic.py:110
↓ 3 callersFunctionis_torchaudio_available
()
src/transformers/src/transformers/utils/import_utils.py:815
↓ 3 callersFunctionlabel_smoothed_nll_loss
From fairseq
src/transformers/examples/research_projects/seq2seq-distillation/utils.py:35
↓ 3 callersFunctionlist_field
(default=None, metadata=None)
src/transformers/src/transformers/benchmark/benchmark_args_utils.py:30
↓ 3 callersFunctionload_attributes_from_hdf5_group
Loads attributes of the specified name from the HDF5 group. This method deals with an inherent problem of HDF5 file which is not able to store da
src/transformers/src/transformers/tf_utils.py:218
↓ 3 callersFunctionload_linelist_file
(linelist_file)
src/utils/tsv_file_ops.py:30
↓ 3 callersMethodlog
Log `logs` on the various objects watching training. Subclass and override this method to inject custom behavior. Args:
src/transformers/src/transformers/trainer_tf.py:391
↓ 3 callersFunctionmain
()
src/transformers/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py:210
↓ 3 callersFunctionmain
()
src/transformers/examples/pytorch/translation/run_translation.py:268
↓ 3 callersMethodmake_constraint_states
(self, n)
src/transformers/src/transformers/generation/beam_search.py:504
↓ 3 callersFunctionmake_eval_dict
(exact_scores, f1_scores, qid_list=None)
src/transformers/src/transformers/data/metrics/squad_metrics.py:120
↓ 3 callersFunctionmake_support
(question, source="wiki40b", method="dense", n_results=10)
src/transformers/examples/research_projects/longform-qa/eli5_app.py:88
↓ 3 callersFunctionmerge_model_tokenizer_mappings
( model_mapping: Dict["PretrainedConfig", Union["PreTrainedModel", "TFPreTrainedModel"]], tokenizer_ma
src/transformers/tests/test_tokenization_common.py:90
↓ 3 callersMethodnext_tokens
The next possible tokens that will progress the trie, given the current sequence of tokens in `current_seq`.
src/transformers/src/transformers/generation/beam_constraints.py:228
↓ 3 callersMethodnormalize
(truth)
src/transformers/examples/legacy/multiple_choice/utils_multiple_choice.py:446
↓ 3 callersMethodnormalizer
(self, proto)
src/transformers/src/transformers/convert_slow_tokenizer.py:511
↓ 3 callersMethodnum_tokens
Helper to get number of tokens in a [`~torch.utils.data.DataLoader`] by enumerating dataloader.
src/transformers/src/transformers/trainer.py:1133
↓ 3 callersMethodparse_dict
Alternative helper method that does not use `argparse` at all, instead uses a dict and populating the dataclass types. Args:
src/transformers/src/transformers/hf_argparser.py:351
↓ 3 callersFunctionpatch_transformer_repo_path
Temporarily patches the variables defines in `check_copies` to use a different location for the repo.
src/transformers/tests/repo_utils/test_check_copies.py:129
↓ 3 callersMethodplot
(self)
src/transformers/examples/legacy/benchmarking/plot_csv_file.py:105
↓ 3 callersFunctionprefetch_tensor
(A, to_cpu=False)
src/bitsandbytes/bitsandbytes/functional.py:198
↓ 3 callersMethodprepare_inputs_for_generation
(self, *args, **kwargs)
src/transformers/src/transformers/generation/flax_utils.py:146
↓ 3 callersFunctionprint_tree_deps_of
Prints the tree of modules depending on a given module. Args: module (`str`): The module that will be the root of the subtree we wan
src/transformers/utils/tests_fetcher.py:793
↓ 3 callersFunctionprintflock
solves multi-process interleaved print problem
src/transformers/scripts/distributed/torch-distributed-gpu-test.py:53
↓ 3 callersFunctionprod
(iterable)
src/bitsandbytes/bitsandbytes/research/autograd/_functions.py:13
↓ 3 callersFunctionpytest_addoption_shared
This function is to be called from `conftest.py` via `pytest_addoption` wrapper that has to be defined there. It allows loading both `confte
src/transformers/src/transformers/testing_utils.py:1649
↓ 3 callersFunctionpytest_terminal_summary_main
Generate multiple reports at the end of test suite run - each report goes into a dedicated file in the current directory. The report files ar
src/transformers/src/transformers/testing_utils.py:1668
↓ 3 callersMethodregister_module_override
(self, module, param_name, config)
src/bitsandbytes/bitsandbytes/optim/optimizer.py:107
↓ 3 callersMethodremaining
(self)
src/transformers/src/transformers/generation/beam_constraints.py:333
↓ 3 callersFunctionreplace_with_awq_linear
Public method that recursively replaces the Linear layers of the given model with AWQ quantized layers. `accelerate` is needed to use this me
src/transformers/src/transformers/integrations/awq.py:23
↓ 3 callersFunctionrescale
Rescales `image` by `scale`. Args: image (`np.ndarray`): The image to rescale. scale (`float`): The
src/transformers/src/transformers/image_transforms.py:92
↓ 3 callersMethodrescale
Rescale a numpy image by scale amount
src/transformers/src/transformers/image_utils.py:380
↓ 3 callersFunctionrescale_stride
Rescales the stride values from audio space to tokens/logits space. (160_000, 16_000, 16_000) -> (2000, 200, 200) for instance.
src/transformers/src/transformers/pipelines/automatic_speech_recognition.py:41
↓ 3 callersMethodresize
internal allocation
src/bitsandbytes/include/AAlloc.h:49
↓ 3 callersMethodrun
(self)
src/transformers/setup.py:237
↓ 3 callersMethodrun_and_check
(self, args)
src/transformers/examples/research_projects/deebert/test_glue_deebert.py:28
↓ 3 callersFunctionrun_generate
Takes input text, generates output, and then using reference calculates the BLEU scores. The results are saved to a file and returned to th
src/transformers/examples/legacy/seq2seq/run_eval.py:86
↓ 3 callersFunctionrun_in_graph_mode
(*args, **kwargs)
src/transformers/src/transformers/benchmark/benchmark_tf.py:59
↓ 3 callersMethodrun_single
(self, inputs, preprocess_params, forward_params, postprocess_params)
src/transformers/src/transformers/pipelines/base.py:1145
↓ 3 callersMethodrun_trainer
( self, max_len: int, model_name: str, num_train_epochs: int, learning
src/transformers/tests/extended/test_trainer_ext.py:256
↓ 3 callersMethodsave_pretrained
Save the pipeline's model and tokenizer. Args: save_directory (`str`): A path to the directory where to
src/transformers/src/transformers/pipelines/base.py:839
↓ 3 callersFunctionselect_field
(features, field)
src/transformers/examples/legacy/run_swag.py:221
↓ 3 callersMethodserving_output
Prepare the output of the saved model. Can be overridden if specific serving modifications are required.
src/transformers/src/transformers/modeling_tf_utils.py:1281
↓ 3 callersMethodsetN
src/bitsandbytes/include/SIMD.h:172
↓ 3 callersMethodset_input_embeddings
Set model's input embeddings. Args: value (`nn.Module`): A module mapping vocabulary to hidden states.
src/transformers/src/transformers/modeling_utils.py:1366
↓ 3 callersMethodset_output_embeddings
Set model's output embeddings Args: value (`tf.Variable`): The new weights mapping hidden states to voca
src/transformers/src/transformers/modeling_tf_utils.py:1895
↓ 3 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/mm-imdb/run_mmimdb.py:58
↓ 3 callersFunctionset_seed
(args)
src/transformers/examples/research_projects/bert-loses-patience/run_glue_with_pabee.py:66
↓ 3 callersMethodsetup
Setup the optional Weights & Biases (*wandb*) integration. One can subclass and override this method to customize the setup if neede
src/transformers/src/transformers/integrations/integration_utils.py:692
↓ 3 callersFunctionshow_pil
(img)
src/transformers/examples/research_projects/vqgan-clip/utils.py:25
↓ 3 callersFunctionsort_objects
Sort a list of objects following the rules of isort (all uppercased first, camel-cased second and lower-cased last). Args: objec
src/transformers/utils/custom_init_isort.py:142
↓ 3 callersFunctionsquad_evaluate
(examples, preds, no_answer_probs=None, no_answer_probability_threshold=1.0)
src/transformers/src/transformers/data/metrics/squad_metrics.py:224
↓ 3 callersMethodstore_flos
(self)
src/transformers/src/transformers/trainer.py:2883
↓ 3 callersFunctionstrip_model_name_and_prefix
(name, _prefix=None)
src/transformers/src/transformers/modeling_tf_utils.py:629
↓ 3 callersMethodtie_weights
(self)
src/transformers/tests/test_modeling_utils.py:113
↓ 3 callersMethodto_causal_4d
Creates a causal 4D mask of (bsz, head_dim=1, query_length, key_value_length) shape and adds large negative bias to upper right hand
src/transformers/src/transformers/modeling_attn_mask_utils.py:64
↓ 3 callersMethodto_dict
Serializes this instance while replace `Enum` by their values (for JSON serialization support). It obfuscates the token values by rem
src/transformers/src/transformers/training_args.py:2136
↓ 3 callersMethodto_dict
(self)
src/transformers/src/transformers/utils/quantization_config.py:498
↓ 3 callersFunctionto_list
(tensor)
src/transformers/examples/legacy/question-answering/run_squad.py:72
↓ 3 callersFunctionto_numpy
Convert a TensorFlow tensor, PyTorch tensor, Numpy array or python list to a Numpy array.
src/transformers/src/transformers/utils/generic.py:262
↓ 3 callersMethodto_raw
Returns the "raw" version of that object. In the case of an AgentImage, it is a PIL.Image.
src/transformers/src/transformers/tools/agent_types.py:115
↓ 3 callersMethodto_string
Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized version of the audio.
src/transformers/src/transformers/tools/agent_types.py:198
↓ 3 callersFunctiontorch_load_from_buffer
(buffer)
src/bitsandbytes/tests/helpers.py:23
↓ 3 callersMethodtrainer_config_process
Adjust the config with `TrainingArguments` values. This stage is run during `TrainingArguments` object creation.
src/transformers/src/transformers/integrations/deepspeed.py:132
↓ 3 callersMethodtranspose_for_scores
(self, x)
src/modeling/bert/modeling_bert.py:293
↓ 3 callersMethodtranspose_for_scores
(self, x)
src/modeling/bert/modeling_graphormer.py:42
↓ 3 callersFunctionundo_layout
Undo a tiled permutation such as turing or ampere layout :param permuted_tensor: torch tensor in a permuted layout :param tile_indices:
src/bitsandbytes/bitsandbytes/autograd/_functions.py:89
↓ 3 callersFunctionupdate_mapping_from_spec
(device_fn_dict: Dict[str, Callable], attribute_name: str)
src/transformers/src/transformers/testing_utils.py:2328
↓ 3 callersMethodupsample
Upsample mesh.
src/modeling/_smpl.py:265
↓ 3 callersFunctionuse_task_specific_params
Update config with summarization specific params.
src/transformers/examples/legacy/seq2seq/utils.py:435
↓ 3 callersFunctionvalidate_model_outputs
( config: OnnxConfig, preprocessor: Union["PreTrainedTokenizer", "FeatureExtractionMixin", "ProcessorM
src/transformers/src/transformers/onnx/convert.py:351
↓ 3 callersMethodvalues
(self)
src/transformers/src/transformers/tokenization_utils_base.py:283
↓ 3 callersFunctionverify
(path: Path)
src/transformers/src/transformers/convert_graph_to_onnx.py:502
↓ 3 callersFunctionvisualize_reconstruction_and_att_local
Overlays gt_kp and pred_kp on img. Draws vert with text. Renderer is an instance of SMPLRenderer.
src/utils/renderer.py:399
↓ 3 callersFunctionvisualize_reconstruction_no_text_new
Overlays gt_kp and pred_kp on img. Draws vert with text. Renderer is an instance of SMPLRenderer.
src/utils/renderer.py:485
↓ 3 callersFunctionwrite_metric
(summary_writer, metrics, train_time, step, metric_key_prefix="train")
src/transformers/examples/flax/image-captioning/run_image_captioning_flax.py:367
↓ 3 callersFunctionwrite_txt_file
(ordered_tgt, path)
src/transformers/examples/legacy/seq2seq/utils.py:630
↓ 2 callersMethodBERT
(self, **inputs)
src/transformers/examples/research_projects/fsner/src/fsner/model.py:20
↓ 2 callersFunctionLoggingLevel
This is a context manager to temporarily change transformers modules logging level to the desired value and have it restored to the original
src/transformers/src/transformers/testing_utils.py:1275
↓ 2 callersMethod__call__
r""" Translate the text(s) given as inputs. Args: args (`str` or `List[str]`): Texts to be translated.
src/transformers/src/transformers/pipelines/text2text_generation.py:341
↓ 2 callersMethod__getattribute__
(self, key)
src/transformers/src/transformers/configuration_utils.py:260
↓ 2 callersMethod__getstate__
(self)
src/bitsandbytes/bitsandbytes/nn/modules.py:238
↓ 2 callersMethod__init__
(self, in_dim, out_dim, encoder='hrnet')
src/modeling/bert/e2e_body_network_SIMU.py:19
↓ 2 callersMethod__init__
(self, in_dim, out_dim, encoder='hrnet')
src/modeling/bert/e2e_body_network_SIMU (Tensor Change Only).py:19
↓ 2 callersMethod__init__
(self, in_dim, out_dim, encoder='hrnet')
src/modeling/bert/e2e_body_network.py:16
↓ 2 callersMethod__init__
Base LAMB optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize. l
src/bitsandbytes/bitsandbytes/optim/lamb.py:9
↓ 2 callersMethod__init__
Base SGD optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize. lr
src/bitsandbytes/bitsandbytes/optim/sgd.py:9
↓ 2 callersMethod__init__
Base Adagrad optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize.
src/bitsandbytes/bitsandbytes/optim/adagrad.py:9
↓ 2 callersMethod__init__
Base RMSprop optimizer. Arguments: params (`torch.tensor`): The input parameters to optimize.
src/bitsandbytes/bitsandbytes/optim/rmsprop.py:9
↓ 2 callersMethod__init__
( self, params: Iterable[nn.parameter.Parameter], lr: float = 1e-3, betas: Tup
src/transformers/src/transformers/optimization.py:412
↓ 2 callersMethod__init__
(self, function)
src/transformers/src/transformers/time_series_utils.py:79
↓ 2 callersMethod__init__
(self, out=True, err=True, replay=True)
src/transformers/src/transformers/testing_utils.py:1159
↓ 2 callersMethod__init__
( self, content: str, single_word=False, lstrip=False, rstrip=False, special=False, normalized=Non
src/transformers/src/transformers/tokenization_utils_base.py:91
↓ 2 callersMethod__init__
(self, value)
src/transformers/src/transformers/tools/agent_types.py:52
↓ 2 callersMethod__init__
(self, *args, **kwargs)
src/transformers/src/transformers/tools/base.py:109
↓ 2 callersMethod__init__
(self)
src/transformers/src/transformers/generation/beam_constraints.py:20
↓ 2 callersMethod__init__
(self)
src/transformers/tests/trainer/test_trainer_distributed.py:58
↓ 2 callersMethod__repr__
(self)
src/transformers/tests/pipelines/test_pipelines_common.py:81
↓ 2 callersMethod__setstate__
(self, state)
src/bitsandbytes/bitsandbytes/nn/modules.py:244
← previousnext →1,001–1,100 of 11,352, ranked by callers