MCPcopy Create free account

hub / github.com/apache/singa / functions

Functions5,531 in github.com/apache/singa

↓ 1 callersMethodset_params
Set parameters for this layer and all sublayers Args: parameters(dict): A dictionary contains parameter names and co
python/singa/layer.py:125
↓ 1 callersMethodset_params
(self, parameters)
python/singa/layer.py:504
↓ 1 callersMethodset_params
(self, parameters)
python/singa/layer.py:875
↓ 1 callersMethodset_states
(self, states)
python/singa/opt.py:98
↓ 1 callersMethodset_states
(self, states)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_cnn.py:214
↓ 1 callersMethodset_states
(self, states)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/algo/trainer.py:238
↓ 1 callersMethodset_states
(self, states)
examples/rnn/char_rnn.py:86
↓ 1 callersMethodset_states
(self, states)
examples/cnn_ms/train_cnn.py:209
↓ 1 callersFunctionshape
Takes a tensor as input and outputs a tensor containing the shape of the input tensor. Args: x (Tensor): Input tensor Returns
python/singa/autograd.py:3386
↓ 1 callersFunctionsignbit
Check sign. See also:** Documentation for [std::signbit](https://en.cppreference.com/w/cpp/numeric/math/signbit). \param arg number to check \retval t
include/half.hpp:4373
↓ 1 callersFunctionsin
Sine function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::sin](https://en.cppreference.com/w/cpp/
include/half.hpp:3530
↓ 1 callersMethodsinga_op_to_onnx_node
get a onnx node from singa operator Args: op: a given operator Args: op_t: the tensor of the operator
python/singa/sonnx.py:886
↓ 1 callersMethodsinga_to_onnx_graph
get onnx model from singa computational graph Args: inputs: a list of input tensors (each is initialized with a name)
python/singa/sonnx.py:909
↓ 1 callersMethodsize
STL-style container methods.
test/gtest/gtest.h:7951
↓ 1 callersFunctionsoftmax
(x)
examples/onnx/tiny_yolov2.py:54
↓ 1 callersFunctionspace201_101_share_args
(parser)
examples/model_selection/Trails/internal/ml/model_selection/exps/shared_args.py:59
↓ 1 callersFunctionsplit
(num)
examples/hfl/src/bank.py:72
↓ 1 callersMethodsql_batch_data_pre_processing
mini_batch_data: [('0', '0', '123:123', '123:123', '123:123',)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:475
↓ 1 callersFunctionsqrt
Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = sqrt(x), x is an element of t
examples/model_selection/Trails/singa_pkg_code/tensor.py:976
↓ 1 callersMethodstart
(self)
python/singa/data.py:106
↓ 1 callersMethodstart
Start the server. This method will first bind and listen on the designated host and port. Then it will connect to num_clients clients
examples/hfl/src/server.py:91
↓ 1 callersMethodstart_timestamp
Gets the time of the test program start, in ms from the start of the UNIX epoch.
test/gtest/gtest-all.cc:5198
↓ 1 callersMethodstep
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/prune_synflow.py:211
↓ 1 callersMethodstep
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_ms_model.py:197
↓ 1 callersMethodstep
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/train_cnn.py:197
↓ 1 callersMethodstep
(self)
examples/cnn_ms/train_ms_model.py:185
↓ 1 callersMethodstep
(self)
examples/cnn_ms/train_cnn.py:192
↓ 1 callersMethodsuccessful_test_count
Gets the number of successful tests.
test/gtest/gtest-all.cc:2213
↓ 1 callersMethodsynch
src/io/communicator.cc:304
↓ 1 callersMethodsynchHalf
src/io/communicator.cc:416
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/largedataset_cnn/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/cifar_distributed_cnn/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/singa_peft/examples/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/cnn/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsynchronize
(tensor, dist_opt)
examples/cnn_ms/autograd/mnist_cnn.py:139
↓ 1 callersFunctionsystem_performance_exp
(parser)
examples/model_selection/Trails/internal/ml/model_selection/exps/shared_args.py:171
↓ 1 callersMethodtest_property_count
Returns the number of the test properties.
test/gtest/gtest-all.cc:3366
↓ 1 callersFunctiontinydir_open_sorted
include/singa/utils/tinydir.h:177
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/msmlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/ms_model_mlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/msmlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/msmodel_mlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/ms_model_mlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/mlp/native.py:65
↓ 1 callersFunctionto_categorical
Converts a class vector (integers) to binary class matrix. Args: y: class vector to be converted into a matrix
examples/cnn_ms/msmlp/native.py:65
↓ 1 callersMethodto_categorical
(self, y, num_classes)
test/python/test_model.py:337
↓ 1 callersFunctionto_host
Copy the data to a host tensor. Args: t (Tensor): a Tensor Returns: new Tensor at host
python/singa/tensor.py:910
↓ 1 callersFunctionto_host
Copy the data to a host tensor. Args: t (Tensor): a Tensor Returns: new Tensor at host
examples/model_selection/Trails/singa_pkg_code/tensor.py:877
↓ 1 callersMethodto_host
Move the tensor data onto the default host CppCPU device.
examples/model_selection/Trails/singa_pkg_code/tensor.py:292
↓ 1 callersMethodto_input_tensor
convert the input to tensors Args: x (np.ndarray[]): a list of numpy ndarray as inputs Returns: a di
python/singa/sonnx.py:2011
↓ 1 callersFunctionto_numpy
Copy the tensor into a numpy array. Args: t (Tensor): a Tensor Returns: a numpy array
python/singa/tensor.py:924
↓ 1 callersFunctionto_numpy
Copy the tensor into a numpy array. Args: t (Tensor): a Tensor Returns: a numpy array
examples/model_selection/Trails/singa_pkg_code/tensor.py:891
↓ 1 callersMethodto_output_tensor
convert the tensors to input Args: x (np.ndarray[]): a list of numpy ndarray as inputs Returns: a di
python/singa/sonnx.py:2031
↓ 1 callersMethodto_type
Change the data type inplace. Args: dtype: accepts 'int', 'float', 'singa.kFloat32', 'singa.kInt' Returns: n
python/singa/tensor.py:286
↓ 1 callersMethodtokenize
Tokenizes a piece of text.
examples/onnx/bert/tokenization.py:192
↓ 1 callersMethodtotal_part_count
Gets the number of all test parts. This is the sum of the number of successful test parts and the number of failed test parts.
test/gtest/gtest-all.cc:3361
↓ 1 callersFunctiontrain
(data_file, use_gpu, num_epoch=10, batch_size=100)
examples/rbm/train.py:48
↓ 1 callersFunctiontrain
(data_file, use_gpu, num_epoch=10, batch_size=100)
examples/singa_peft/examples/model/rbm.py:48
↓ 1 callersFunctiontrain
(data, max_epoch, hidden_size=100, seq_length=100, batch_size=16,
examples/singa_peft/examples/model/char_rnn.py:212
↓ 1 callersFunctiontrain
(data, max_epoch, hidden_size=100, seq_length=100, batch_size=16,
examples/rnn/char_rnn.py:212
↓ 1 callersMethodtrain
(self)
examples/gan/vanilla.py:66
↓ 1 callersMethodtrain
(self)
examples/singa_peft/examples/model/vanilla.py:66
↓ 1 callersFunctiontrain_cifar10
(DIST=False, local_rank=None, world_size=None, nccl_id=N
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/resnet_cifar10.py:156
↓ 1 callersFunctiontrain_cifar10
(DIST=False, local_rank=None, world_size=None, nccl_id=N
examples/largedataset_cnn/autograd/resnet_cifar10.py:156
↓ 1 callersFunctiontrain_cifar10
(DIST=False, local_rank=None, world_size=None, nccl_id=N
examples/cifar_distributed_cnn/autograd/resnet_cifar10.py:156
↓ 1 callersFunctiontrain_cifar10
(DIST=False, local_rank=None, world_size=None, nccl_i
examples/cnn/autograd/resnet_cifar10.py:156
↓ 1 callersFunctiontrain_cifar10
(DIST=False, local_rank=None, world_size=None, nccl_id=N
examples/cnn_ms/autograd/resnet_cifar10.py:156
↓ 1 callersMethodtrain_one_batch
Defines the computation performed in every training iteration Should be overridden by all subclasses. Args: *input: the
python/singa/model.py:199
↓ 1 callersMethodtrain_one_batch
(self, x, y)
test/python/test_model.py:67
↓ 1 callersMethodtrain_one_batch
Defines the computation performed in every training iteration Should be overridden by all subclasses. Args: *input: the
examples/model_selection/Trails/singa_pkg_code/model.py:222
↓ 1 callersMethodtrain_one_batch
Defines the computation performed in every training iteration Should be overridden by all subclasses. Args: *input: the
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:202
↓ 1 callersMethodtrain_one_batch
Defines the computation performed in every training iteration Should be overridden by all subclasses. Args: *input: the
examples/cnn_ms/pkg_model_code/model.py:202
↓ 1 callersFunctiontrain_resnet
(DIST=True, graph=True, sequential=False, verbosity=0)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/benchmark.py:33
↓ 1 callersFunctiontrain_resnet
(DIST=True, graph=True, sequential=False, verbosity=0)
examples/cifar_distributed_cnn/benchmark.py:34
↓ 1 callersFunctiontrain_resnet
(DIST=True, graph=True, sequential=False, verbosity=0)
examples/cnn/benchmark.py:33
↓ 1 callersFunctiontrain_resnet
(DIST=True, graph=True, sequential=False, verbosity=0)
examples/cnn_ms/benchmark.py:33
↓ 1 callersFunctiontune_interval_NK_rate
(parser)
examples/model_selection/Trails/internal/ml/model_selection/exps/shared_args.py:154
↓ 1 callersFunctionuci_validation_set
(X, y, split_perc=0.2)
examples/model_selection/Trails/internal/ml/model_selection/src/dataset_utils/structure_data_loader.py:210
↓ 1 callersFunctionunzip_data
(download_dir, data_zip)
examples/qabot/qabot_data.py:38
↓ 1 callersFunctionunzip_data
(download_dir, data_gz)
examples/rnn/imdb_data.py:106
↓ 1 callersMethodupdate
(self, value)
examples/model_selection/Trails/internal/ml/model_selection/src/controller/sampler_rl/reinforcement_learning.py:33
↓ 1 callersFunctionupdate_base_index
this function updates the base indexes with the current index after every single traversal step, can be generalized beyond 2d cases
src/core/tensor/tensor_math_cpp.h:102
↓ 1 callersMethodupdate_policy
(self, reward, baseline_values, log_prob)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/rl_policy.py:36
↓ 1 callersMethodvalue
Return the current value of the moving average
examples/model_selection/Trails/internal/ml/model_selection/src/controller/sampler_rl/reinforcement_learning.py:39
↓ 1 callersFunctionwrite_json
(file_name, data)
examples/model_selection/Trails/internal/ml/model_slicing/save_satistics.py:27
↓ 1 callersFunctionwrite_predictions
Write final predictions to the json file.
examples/onnx/bert/run_onnx_squad.py:257
Method SingleFailureChecker
The constructor of SingleFailureChecker remembers where to look up test part results, what type of failure we expect, and what substring the failure m
test/gtest/gtest-all.cc:2132
MethodA
src/model/layer/prelu.h:50
FunctionAbs
src/core/tensor/tensor_math.h:88
FunctionAddGlobalTestEnvironment
A convenient wrapper for adding an environment for the test program. You should call this before RUN_ALL_TESTS() is called, probably in main(). If y
test/gtest/gtest.h:18731
MethodAddSyncOp
src/core/scheduler/scheduler.cc:520
MethodAddTestCaseInstantiation
INSTANTIATE_TEST_CASE_P macro uses AddGenerator() to record information about a generator.
test/gtest/gtest.h:10474
FunctionAddTestInfo
Adds a TestInfo to the unit test. Arguments: set_up_tc: pointer to the function that sets up the test case tear_down_tc: pointer to the function
test/gtest/gtest-all.cc:1055
FunctionAddTestName
test/gtest/gtest.h:7476
MethodAddTestPattern
TEST_P macro uses AddTestPattern() to record information about a single test in a LocalTestInfo structure. test_case_name is the base name of the test
test/gtest/gtest.h:10465
MethodAdvance
test/gtest/gtest.h:10294
MethodAdvance
Advance should not be called on beyond-of-range iterators so no component iterators must be beyond end of range, either.
test/gtest/gtest.h:13812
MethodAdvance
Advance should not be called on beyond-of-range iterators so no component iterators must be beyond end of range, either.
test/gtest/gtest.h:13931
MethodAdvance
Advance should not be called on beyond-of-range iterators so no component iterators must be beyond end of range, either.
test/gtest/gtest.h:14068
← previousnext →2,101–2,200 of 5,531, ranked by callers