MCPcopy Create free account

hub / github.com/apache/singa / functions

Functions5,531 in github.com/apache/singa

↓ 2 callersFunctionconv3x3
3x3 convolution with padding
examples/largedataset_cnn/model/resnet.py:27
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
examples/cifar_distributed_cnn/model/resnet.py:27
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
examples/cnn/model/resnet.py:27
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
examples/cnn_ms/model/resnet.py:27
↓ 2 callersFunctionconvert
convert a batch of data into a sequence of input tensors
examples/singa_peft/examples/model/char_rnn.py:146
↓ 2 callersFunctionconvert
convert a batch of data into a sequence of input tensors
examples/rnn/char_rnn.py:146
↓ 2 callersFunctionconvert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
examples/onnx/bert/tokenization.py:77
↓ 2 callersMethodcossim_helper
(self, dev)
test/python/test_operation.py:3217
↓ 2 callersFunctioncrop
Crop the input image into given size at given position. Args: patch(tuple): width and height of the patch position(list(str)): le
python/singa/image_tool.py:51
↓ 2 callersFunctioncrop
src/io/image_transformer.cc:201
↓ 2 callersMethodcrop5
Crop at positions from [left_top, left_bottom, right_top, right_bottom, and center]. Args: patch(tuple): width and height
python/singa/image_tool.py:377
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/resnet_cifar10.py:149
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/largedataset_cnn/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/largedataset_cnn/autograd/resnet_cifar10.py:149
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cifar_distributed_cnn/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cifar_distributed_cnn/autograd/resnet_cifar10.py:149
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/singa_peft/examples/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cnn/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cnn/autograd/resnet_cifar10.py:149
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cnn_ms/autograd/mnist_cnn.py:159
↓ 2 callersFunctiondata_partition
(dataset_x, dataset_y, global_rank, world_size)
examples/cnn_ms/autograd/resnet_cifar10.py:149
↓ 2 callersMethoddeepcopy
Same as clone(). Returns: a new Tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:457
↓ 2 callersMethoddepth_space_helper
(self, dev)
test/python/test_operation.py:3383
↓ 2 callersMethoddeserialize_model_encoding
(cls, model_encoding: str)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:479
↓ 2 callersFunctiondiv
Elementi-wise division. Args: lhs (Tensor): lhs tensor rhs (Tensor): rhs tensor ret (Tensor, optional): if not None, the
python/singa/tensor.py:1605
↓ 2 callersFunctiondo_download
(dirpath, gzfile, url)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/data/download_cifar10.py:38
↓ 2 callersFunctiondo_download
(dirpath, gzfile, url)
examples/cpp/cifar10/download_data.py:48
↓ 2 callersFunctiondo_download
(dirpath, gzfile, url)
examples/cifar_distributed_cnn/data/download_cifar10.py:38
↓ 2 callersFunctiondo_download
(dirpath, gzfile, url)
examples/cnn/data/download_cifar10.py:38
↓ 2 callersFunctiondo_download
(dirpath, gzfile, url)
examples/cnn_ms/data/download_cifar10.py:38
↓ 2 callersFunctiondo_eval
(m, tq, ta, test, meta_data, args)
examples/qabot/qabot_train.py:63
↓ 2 callersMethoddropout_test
(self, dev)
test/python/test_operation.py:2725
↓ 2 callersMethodembedding_helper
(self, dev)
test/python/test_operation.py:3532
↓ 2 callersFunctionerf
include/half.hpp:1918
↓ 2 callersMethoderf_helper
(self, dev)
test/python/test_operation.py:3626
↓ 2 callersMethodeval
Sets the model in evaluation mode.
python/singa/model.py:219
↓ 2 callersMethodevaluate
Score each architecture with predefined architecture and data :param arch: architecture to be scored :param device: cpu or g
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/alg_base.py:32
↓ 2 callersMethodexpand_helper
(self, dev)
test/python/test_operation.py:3244
↓ 2 callersFunctionfetch_from_db
:param run_id_m: run_id 100 max :param B1_m: number of models evaluted :return:
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/img_explore_ea.py:47
↓ 2 callersFunctionflip
(img)
python/singa/image_tool.py:198
↓ 2 callersMethodflip
Randomly flip a img left to right. Args: num_case: num of cases, must be in {1,2}; if 2, then add the orignal
python/singa/image_tool.py:541
↓ 2 callersFunctionflip_down
(img)
python/singa/image_tool.py:204
↓ 2 callersMethodfloor_test
(self,dev)
test/python/test_operation.py:2884
↓ 2 callersMethodforward
Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: th
python/singa/model.py:186
↓ 2 callersMethodforward
(self, x, seq_lengths)
test/python/test_model.py:121
↓ 2 callersMethodforward
(self, x)
test/python/test_model.py:161
↓ 2 callersMethodforward
Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: th
examples/model_selection/Trails/singa_pkg_code/model.py:209
↓ 2 callersMethodforward
Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: th
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:189
↓ 2 callersMethodforward
(self, q, a_batch)
examples/qabot/qabot_model.py:62
↓ 2 callersMethodforward
Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: th
examples/cnn_ms/pkg_model_code/model.py:189
↓ 2 callersMethodforward_dis
(self, x)
examples/gan/model/lsgan_mlp.py:51
↓ 2 callersMethodforward_dis
(self, x)
examples/gan/model/gan_mlp.py:52
↓ 2 callersMethodforward_dis
(self, x)
examples/singa_peft/examples/model/lsgan_mlp.py:51
↓ 2 callersMethodforward_dis
(self, x)
examples/singa_peft/examples/model/gan_mlp.py:52
↓ 2 callersMethodfusedSparsification
src/io/communicator.cc:532
↓ 2 callersMethodgather_test
(self, dev)
test/python/test_operation.py:3014
↓ 2 callersMethodgenerate_all_ones_embedding
Only for the MLP Returns:
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:400
↓ 2 callersMethodgenerate_data
(self, dev, num=400)
test/python/test_model.py:344
↓ 2 callersFunctiongenerate_global_rank
ml_data_score_dic: { model_id: {alg: score1, alg2: score2} } return: { model_id: {alg1_alg2: rank_score} }
examples/model_selection/Trails/internal/ml/model_selection/src/tools/compute.py:60
↓ 2 callersFunctiongenerate_op_desc
src/core/tensor/tensor_math_cuda.h:148
↓ 2 callersFunctiongenerate_shape_cuda
cudnn requires tensor dimensions to fulfill 1 requirement: 1.) Dimensions to be set to a minimum of 4 for 4d and lower dimensional tensors if
src/core/tensor/tensor_math_cuda.h:60
↓ 2 callersMethodget_batch_data
(self, batch, mode='train')
examples/trans/data.py:147
↓ 2 callersMethodget_c10_test_info
Default use 108 epoch for c10, this is the largest epoch number. :param dataset: :param arch_id: architecture id :par
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_img.py:245
↓ 2 callersMethodget_current_top_k_models
The model is already scored by: low -> high :param k: :return:
examples/model_selection/Trails/internal/ml/model_selection/src/controller/controler.py:165
↓ 2 callersFunctionget_data_from_shared_memory
(shmem_name="my_shmem")
examples/model_selection/Trails/internal/ml/model_slicing/pg_interface.py:331
↓ 2 callersFunctionget_dnnl_format_tag
include/singa/utils/dnnl_utils.h:28
↓ 2 callersFunctionget_image
()
examples/onnx/tiny_yolov2.py:40
↓ 2 callersMethodget_params
(self)
python/singa/layer.py:1216
↓ 2 callersMethodget_params
(self, model)
test/python/test_model.py:357
↓ 2 callersFunctionget_peft_model
r""" Args: base_model: the base model peft_config: the config of peft Returns: a peft model based on peft config
examples/singa_peft/src/singa_peft/peft_model.py:77
↓ 2 callersMethodget_score_one_model_time
(self, device: str)
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_mlp.py:128
↓ 2 callersFunctionget_train_raw
deserialize training data file args: data_dir: dir of data file return: train_raw: list of QnA pair, length o
examples/qabot/qabot_data.py:86
↓ 2 callersMethodglobalaveragepool_channel_first
(self, dev)
test/python/test_operation.py:2630
↓ 2 callersMethodglobalaveragepool_channel_last
(self, dev)
test/python/test_operation.py:2658
↓ 2 callersMethodguess_score_time
(cls, dataset=Config.c10)
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_img.py:166
↓ 2 callersMethodguess_train_one_epoch_time
(self, dataset)
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_img.py:215
↓ 2 callersMethodhandle_special_ops
hanlde some special operations Args: name (str): name of the state node (ONNXNode): ONNX node ten
python/singa/sonnx.py:2062
↓ 2 callersMethodhas_label
include/singa/io/decoder.h:67
↓ 2 callersMethodhorizontal_mirror
include/singa/io/transformer.h:61
↓ 2 callersFunctionhton
include/singa/utils/integer.h:46
↓ 2 callersFunctionhton
include/singa/io/integer.h:46
↓ 2 callersMethodinitialize
Init the instance
python/singa/sonnx.py:1977
↓ 2 callersMethodinitialize
(self, x)
examples/trans/model.py:571
↓ 2 callersMethodinitialize
(self, x)
examples/singa_peft/examples/model/trans.py:564
↓ 2 callersMethodjoin_new
Create a new circle that includes only this instance.
test/gtest/gtest.h:9052
↓ 2 callersMethodl1
=============Element-wise operations====================================
src/core/tensor/tensor.cc:815
↓ 2 callersMethodlayer_type
Each layer sub-class would optionaly have a type name. Used for debugging and logging.
include/singa/model/layer.h:63
↓ 2 callersFunctionload_data
(filepath)
examples/gan/utils.py:37
↓ 2 callersFunctionload_data
(filepath)
examples/singa_peft/examples/model/gan_utils.py:37
↓ 2 callersFunctionload_dataset
(filepath)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/data/cifar100.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/data/cifar10.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/resnet_cifar10.py:37
↓ 2 callersFunctionload_dataset
(filepath)
examples/healthcare/data/cifar10.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/largedataset_cnn/autograd/resnet_cifar10.py:37
↓ 2 callersFunctionload_dataset
(filepath)
examples/cifar_distributed_cnn/data/cifar100.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/cifar_distributed_cnn/data/cifar10.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/cifar_distributed_cnn/autograd/resnet_cifar10.py:37
↓ 2 callersFunctionload_dataset
(filepath)
examples/singa_peft/examples/data/cifar10.py:30
↓ 2 callersFunctionload_dataset
(filepath)
examples/singa_peft/examples/autograd/resnet_cifar10.py:37
← previousnext →1,001–1,100 of 5,531, ranked by callers