MCPcopy Create free account

hub / github.com/apache/singa / functions

Functions5,531 in github.com/apache/singa

↓ 1 callersMethod_do_forward
Do not call this function from user code. It is called by __call__(). Args: xs, Tensor instance(s) Returns:
python/singa/autograd.py:270
↓ 1 callersMethod_encoding_stc
(src_tokens, tgt_tokens, src_max_len, tgt_max_len, src_vocab, tgt_vocab)
examples/trans/data.py:127
↓ 1 callersMethod_erf
(self, dev=cpu_dev)
test/python/test_api.py:343
↓ 1 callersMethod_evaluate_query
:param cand: the candidate to evaluate :param epoch_per_model: how many resource it can use, epoch number :return:
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/evaluator.py:65
↓ 1 callersMethod_evaluate_train
:param cand: the candidate to evaluate :param epoch_per_model: how many resource it can use, epoch number :return:
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/evaluator.py:78
↓ 1 callersMethod_get_attn_mask
(attn_mask, n_head)
examples/trans/model.py:444
↓ 1 callersMethod_get_attn_mask
(attn_mask, n_head)
examples/singa_peft/examples/model/trans.py:441
↓ 1 callersMethod_get_attn_subsequence_mask
Args: seq: [batch_size, tgt_len] Returns:
examples/trans/model.py:193
↓ 1 callersMethod_get_attn_subsequence_mask
Args: seq: [batch_size, tgt_len] Returns:
examples/singa_peft/examples/model/trans.py:225
↓ 1 callersMethod_get_singa_op_inputs_outputs
get inputs and outputs from a given operator Args: op: a given operator Returns: inputs and outputs
python/singa/sonnx.py:664
↓ 1 callersFunction_get_some_data
Randomly sample some data, some class may not be sampled :param train_dataloader: torch dataLoader :param batch_size: batch_size of the d
examples/model_selection/Trails/internal/ml/model_selection/src/dataset_utils/dataset.py:169
↓ 1 callersFunction_get_some_data_grasp
Sample some data while guarantee example class has equal number of samples. :param train_dataloader: torch dataLoader :param num_classes:
examples/model_selection/Trails/internal/ml/model_selection/src/dataset_utils/dataset.py:188
↓ 1 callersMethod_initialize_weights
(self, method='xavier')
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:137
↓ 1 callersMethod_inject_linear_lora
(self, base_model, config: LinearLoraConfig)
examples/singa_peft/src/singa_peft/tuners/linear_lora/tuner.py:40
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
examples/onnx/bert/tokenization.py:260
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
examples/onnx/bert/tokenization.py:370
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
examples/onnx/bert/tokenization.py:382
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
examples/onnx/bert/tokenization.py:358
↓ 1 callersMethod_onnx_constant_to_np
parse onnx constatn node to numpy array Args: onnx_node (OnnxNode): a given onnx node opset_version (int): th
python/singa/sonnx.py:1730
↓ 1 callersMethod_onnx_model_to_singa_ops
get all intermediate params, operators, and input info from onnx model Args: graph (Graph): the loaded ONNX graph
python/singa/sonnx.py:1876
↓ 1 callersMethod_p1_evaluate_online
(self, model_acquire: ModelAcquireData)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/concurrent_evaluator.py:148
↓ 1 callersMethod_p1_evaluate_simu
This involves simulate get alls core,
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:340
↓ 1 callersMethod_p1_evaluate_simu_jacflow
This involves get rank, and get jacflow
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:328
↓ 1 callersMethod_parse_graph_inputs_outputs
parse the inits, outputs from onnx graph Args: graph (Graph): a given onnx graph device (string): # CPU or CU
python/singa/sonnx.py:1851
↓ 1 callersMethod_parse_graph_params
parse the parameters from onnx graph Args: graph (Graph): a given onnx graph device (string): CPU or CUDA
python/singa/sonnx.py:1834
↓ 1 callersMethod_re_rank_model_id
(self, model_id: str, alg_score: dict)
examples/model_selection/Trails/internal/ml/model_selection/src/controller/controler.py:144
↓ 1 callersMethod_retrievel_from_db_spi
(self, model_acquire)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:449
↓ 1 callersMethod_retrievel_from_db_sql
(self, batch_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:425
↓ 1 callersMethod_run_node
run a single singa operator from singa operator Args: operator (Operator): the Operator instance inputs (Tens
python/singa/sonnx.py:1819
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
examples/onnx/bert/tokenization.py:227
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
examples/onnx/bert/tokenization.py:216
↓ 1 callersMethod_split_sentences
(path)
examples/trans/data.py:107
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
examples/onnx/bert/tokenization.py:247
↓ 1 callersMethod_use_pure_score_as_final_res
(self, model_id: str, alg_score: dict)
examples/model_selection/Trails/internal/ml/model_selection/src/controller/controler.py:131
↓ 1 callersMethod_use_vote_rank_as_final_res
:param model_id: :param alg_score: {alg_name1: score1, alg_name2: score2}
examples/model_selection/Trails/internal/ml/model_selection/src/controller/controler.py:114
↓ 1 callersFunctionad_hoc_test_result
Returns the TestResult for the ad hoc test.
test/gtest/gtest-all.cc:1007
↓ 1 callersMethodaggregate
Aggregate collected weights to update server weight. Args: weights (Dict[str, List[tensor.Tensor]]): The collected weights.
examples/hfl/src/server.py:105
↓ 1 callersFunctionanytime_exp_set
(parser)
examples/model_selection/Trails/internal/ml/model_selection/exps/shared_args.py:165
↓ 1 callersMethodapi_get_score
(self, arch_id: str)
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_mlp.py:162
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
python/singa/opt.py:382
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
python/singa/opt.py:480
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
python/singa/opt.py:598
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/prune_synflow.py:168
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_ms_model.py:154
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_cnn.py:154
↓ 1 callersMethodapply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): para
examples/cnn_ms/train_ms_model.py:143
↓ 1 callersMethodasyncSendPendingMsg
src/io/network/endpoint.cc:537
↓ 1 callersMethodasync_fit_sampler
(self, current_arch_id, current_arch_micro, score: float)
examples/model_selection/Trails/internal/ml/model_selection/src/controller/sampler_ea/regularized_ea.py:228
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_ms_model.py:222
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_cnn.py:222
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/resnet_cifar10.py:103
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/malaria_cnn/train_cnn.py:36
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/hfl/src/client.py:124
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/healthcare/application/Malaria_Disease/train.py:40
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/healthcare/application/Diabetic_Disease/Diabetic_Retinopathy_Classification/train.py:40
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/healthcare/application/Kidney_Disease/train.py:39
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/healthcare/application/Cardiovascular_Disease/train.py:36
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/largedataset_cnn/train_largedata.py:31
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/largedataset_cnn/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/largedataset_cnn/autograd/resnet_cifar10.py:103
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cifar_distributed_cnn/train_cnn.py:39
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cifar_distributed_cnn/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cifar_distributed_cnn/autograd/resnet_cifar10.py:103
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/singa_peft/examples/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn/train_cnn.py:35
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn/autograd/resnet_cifar10.py:103
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/onnx/training/train.py:43
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn_ms/train_ms_model.py:210
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn_ms/train_cnn.py:217
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn_ms/autograd/mnist_cnn.py:146
↓ 1 callersFunctionaugmentation
(x, batch_size)
examples/cnn_ms/autograd/resnet_cifar10.py:103
↓ 1 callersFunctionaxis_helper
check which axes the x has been broadcasted Args: y_shape: the shape of result x_shape: the shape of x Return: a
python/singa/autograd.py:34
↓ 1 callersFunctionbackward
Run the backward propagation starting at y. Args: y: a Tensor instance, usually the loss dy: a number or a Tensor instance, f
python/singa/autograd.py:128
↓ 1 callersMethodbackward
Backward propagation. Args: dys: input args consisting of only CTensors. Returns: CTensor instance(s)
python/singa/autograd.py:331
↓ 1 callersMethodbernoulli
Sample 0/1 for each element according to the given probability. Args: p (float): with probability p, each element is sample to 1.
python/singa/tensor.py:496
↓ 1 callersFunctionbinary_insert_get_rank
Insert the new_item to rank_list, then get the rank of it. :param rank_list: 0: id, 1: score :param new_item: :return:
examples/model_selection/Trails/internal/ml/model_selection/src/tools/compute.py:25
↓ 1 callersMethodbuffer_operation
(func)
python/singa/model.py:41
↓ 1 callersMethodbuffer_operation
(func)
examples/model_selection/Trails/singa_pkg_code/model.py:46
↓ 1 callersMethodbuffer_operation
(func)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:41
↓ 1 callersMethodbuffer_operation
(func)
examples/cnn_ms/pkg_model_code/model.py:41
↓ 1 callersMethodbuilder
(cls, encoding: str)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:69
↓ 1 callersFunctionbuiltin_isinf
include/half.hpp:546
↓ 1 callersFunctionbyteSwap
include/singa/utils/integer.h:34
↓ 1 callersFunctionbyteSwap
include/singa/io/integer.h:34
↓ 1 callersMethodcall
(self, step)
python/singa/opt.py:37
↓ 1 callersMethodcall
(self, loss)
python/singa/opt.py:107
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/prune_synflow.py:53
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_ms_model.py:44
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_cnn.py:44
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/algo/trainer.py:56
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/cnn_ms/train_ms_model.py:44
↓ 1 callersMethodcall_with_returns
(self, loss)
examples/cnn_ms/train_cnn.py:44
↓ 1 callersFunctioncheck_dataset_exist
(dirpath)
examples/healthcare/data/diaret.py:56
↓ 1 callersFunctioncheck_dataset_exist
(dir_path)
examples/healthcare/data/kidney.py:41
↓ 1 callersFunctioncheck_dir_exist
(dirpath)
examples/cpp/cifar10/download_data.py:39
↓ 1 callersMethodclose
Close the server.
examples/hfl/src/server.py:101
↓ 1 callersFunctioncolor_cast
Add a random value from [-offset, offset] to each channel
python/singa/image_tool.py:148
↓ 1 callersFunctionconfig2size_func
(search_space)
examples/model_selection/Trails/internal/ml/model_selection/src/controller/sampler_bohb/bohb_or.py:78
← previousnext →1,501–1,600 of 5,531, ranked by callers