MCPcopy Create free account

hub / github.com/apache/singa / functions

Functions5,531 in github.com/apache/singa

↓ 9 callersMethodelapsed_time
Gets the elapsed time, in milliseconds.
test/gtest/gtest-all.cc:5203
↓ 9 callersFunctionfn
src/core/tensor/tensor.cc:1080
↓ 9 callersMethodfused_all_reduce
Performs all reduce of the tensors after fusing them in a buffer. Args: tensor(List of Tensors): a list of tensors to be all-
python/singa/opt.py:756
↓ 9 callersMethodget
(self)
python/singa/image_tool.py:244
↓ 9 callersMethodheight
src/model/layer/pooling.h:86
↓ 9 callersMethodif_cuda_avaiable
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:104
↓ 9 callersFunctioninit_data_desc
src/model/operation/rnn.cc:528
↓ 9 callersMethodkernel_h
src/model/layer/pooling.h:79
↓ 9 callersMethodkernel_w
src/model/layer/pooling.h:78
↓ 9 callersMethodpad_h
src/model/layer/pooling.h:81
↓ 9 callersMethodpad_w
src/model/layer/pooling.h:80
↓ 9 callersMethodsave
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/tools/utils.py:393
↓ 9 callersMethodset_optimizer
(self, optimizer)
examples/healthcare/models/malaria_net.py:126
↓ 9 callersFunctionsign_mask
Platform-independent sign mask. \param arg integer value in two's complement \retval -1 if \a arg negative \retval 0 if \a arg positive
include/half.hpp:591
↓ 9 callersMethodsize
include/singa/core/tensor.h:139
↓ 9 callersMethodstride_h
src/model/layer/pooling.h:83
↓ 9 callersMethodstride_w
src/model/layer/pooling.h:82
↓ 9 callersFunctiontanh
Hyperbolic tangent. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::tanh](https://en.cppreference.com/
include/half.hpp:3822
↓ 9 callersMethodtrain
Set the model in evaluation mode. Args: mode(bool): when mode is True, this model will enter training mode
examples/cnn_ms/pkg_model_code/model.py:213
↓ 9 callersMethodwidth
src/model/layer/pooling.h:87
↓ 8 callersFunctionClose
test/gtest/gtest.h:2896
↓ 8 callersFunctionConcatenateColumns
TODO(wangwei) add a copypatch function for improve the efficiency on GPU.
src/core/tensor/tensor.cc:1382
↓ 8 callersMethodElapsed
include/singa/utils/timer.h:42
↓ 8 callersMethodFill
include/singa/model/initializer.h:99
↓ 8 callersFunctionGetEnv
test/gtest/gtest.h:2899
↓ 8 callersFunctionGetTimeInMillis
Returns the current time in milliseconds.
test/gtest/gtest-all.cc:2264
↓ 8 callersFunctionHandleExceptionsInMethodIfSupported
test/gtest/gtest-all.cc:3570
↓ 8 callersFunctionIsSubstringImpl
test/gtest/gtest-all.cc:2744
↓ 8 callersMethodMemSize
Return memory size (i.e., Bytes)
include/singa/core/tensor.h:146
↓ 8 callersMethodNormalize
Removes any redundant separators that might be in the pathname. For example, "bar///foo" becomes "bar/foo". Does not eliminate other redundancies that
test/gtest/gtest-all.cc:8185
↓ 8 callersFunctionParseBoolFlag
Parses a string for a bool flag, in the form of either "--flag=value" or "--flag". In the former case, the value is taken as true as long as it does
test/gtest/gtest-all.cc:6199
↓ 8 callersFunctionParseNaturalNumber
test/gtest/gtest-all.cc:1403
↓ 8 callersFunctionPrintCharsAsStringTo
test/gtest/gtest-all.cc:9268
↓ 8 callersMethodRepeat
src/core/tensor/tensor.cc:421
↓ 8 callersMethodResetGraph
include/singa/core/device.h:98
↓ 8 callersMethodT
shallow copy. Returns: a new Tensor which shares the underlying data memory (shallow copy).
examples/model_selection/Trails/singa_pkg_code/tensor.py:441
↓ 8 callersMethodTick
Reset the internal time point to the current time
include/singa/utils/timer.h:37
↓ 8 callersFunctionUniversalPrint
test/gtest/gtest.h:9943
↓ 8 callersMethod_conv_same_pad
(self, dev, pad_mode, is_2d)
test/python/test_operation.py:149
↓ 8 callersMethod_pooling_same_pad
(self, dev, pad_mode, is_2d)
test/python/test_operation.py:204
↓ 8 callersMethodas_type
Change the data type. Args: dtype: accepts 'int', 'float', 'singa.kFloat32', 'singa.kInt' Returns: new tenso
python/singa/tensor.py:261
↓ 8 callersFunctionassertTensorEqual
(x,y,decimal=6)
test/python/test_opt.py:32
↓ 8 callersMethodbackward
(self, dy=1.0)
examples/cnn_ms/msmlp/model.py:57
↓ 8 callersFunctiondivide64
64-bit division. \param x upper 32 bit of dividend \param y divisor \param s variable to store sticky bit for rounding \return (\a x << 32) / \a y
include/half.hpp:1380
↓ 8 callersMethodeval
Sets the model in evaluation mode.
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:222
↓ 8 callersMethodevaluate_wrapper
:param arch: architecture to be scored :param device: cpu or GPU :param space_name: search space name :param batch_da
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/alg_base.py:48
↓ 8 callersFunctionexp2
Fixed point binary exponential. This uses the BKM algorithm in E-mode. \param m exponent in [0,1) as Q0.31 \param n number of iterations (at most 32)
include/half.hpp:1504
↓ 8 callersFunctionmultiply64
64-bit multiplication. \param x first factor \param y second factor \return upper 32 bit of \a x * \a y rounded to nearest
include/half.hpp:1366
↓ 8 callersMethodp2_evaluate
:param cand: candidate id :param epoch_per_model: epoch for each model :return:
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/evaluator.py:53
↓ 8 callersFunctionresize
Resize the image to make the smaller side be at the given size
python/singa/image_tool.py:124
↓ 8 callersMethodset_weight_inputs
(self, key, name)
python/singa/sonnx.py:1016
↓ 8 callersMethodsize
include/singa/core/common.h:77
↓ 8 callersFunctiontranspose
To transpose the tensor Args: t: input tensor axes: axes to transpose Returns: the transposed tensor
python/singa/tensor.py:849
↓ 7 callersMethodBatchNormHandle
src/model/operation/batchnorm.cc:27
↓ 7 callersFunctionBoolFromGTestEnv
Reads and returns the Boolean environment variable corresponding to the given flag; if it's not set, returns default_value. The value is considered t
test/gtest/gtest-all.cc:8976
↓ 7 callersMethodChannel_shared
src/model/layer/prelu.h:49
↓ 7 callersMethodDecRefCount
include/singa/core/common.h:82
↓ 7 callersFunctionDivRow
Divide row 'v' by each row of matrix M; write results into 'out'
src/core/tensor/tensor.cc:1464
↓ 7 callersFunctionForEach
test/gtest/gtest-all.cc:696
↓ 7 callersFunctionGTEST_LOCK_EXCLUDED_
test/gtest/gtest-all.cc:4998
↓ 7 callersFunctionGenReLUConf
examples/cpp/imagenet/alexnet.cc:78
↓ 7 callersMethodRunGraph
src/core/device/device.cc:67
↓ 7 callersFunctionStringStreamToString
Converts the buffer in a stringstream to an std::string, converting NUL bytes to "\\0" along the way.
test/gtest/gtest-all.cc:3143
↓ 7 callersFunctionSumOverTestCaseList
Iterates over a vector of TestCases, keeping a running sum of the results of calling a given int-returning method on each. Returns the sum.
test/gtest/gtest-all.cc:1805
↓ 7 callersMethod__init__
(self, ninput: int, hidden_layer_list: list, dropout_rate: float, noutput: int, use_bn: bool)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:98
↓ 7 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/phase2/algo/trainer.py:171
↓ 7 callersMethodbackward
(self, dy=1.0)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/msmlp/model.py:56
↓ 7 callersMethodcompile
Compile and initialize the model This function will automatically derive the shape of parameters in each sublayer based on the shape
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:159
↓ 7 callersMethodgaussian
Generate a value for each element following a Gaussian distribution. Args: mean (float): mean of the distribution std
examples/model_selection/Trails/singa_pkg_code/tensor.py:482
↓ 7 callersFunctiongenerate_dataloader
(mini_batch_data, args)
examples/model_selection/Trails/internal/ml/model_selection/pg_interface.py:101
↓ 7 callersFunctionget_list_sample
(l, sample_size)
python/singa/image_tool.py:210
↓ 7 callersMethodinit_embedding
This is slow, in filtering phase, we could enable caching here.
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:384
↓ 7 callersMethodos_stack_trace_getter
Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
test/gtest/gtest-all.cc:6068
↓ 7 callersMethodset_states
(self, states)
python/singa/opt.py:329
↓ 7 callersFunctiontinydir_close
include/singa/utils/tinydir.h:231
↓ 7 callersFunctiontrain_test_split
(x, y, val_ratio=0.2)
examples/healthcare/data/diaret.py:78
↓ 6 callersFunctionAbort
test/gtest/gtest-all.cc:8909
↓ 6 callersFunctionAddColumn
src/core/tensor/tensor.cc:1271
↓ 6 callersFunctionAverage
=============Matrix operations============================================
src/core/tensor/tensor.cc:1188
↓ 6 callersFunctionChopLowBits
Chops off the n lowest bits from a bit pattern. Returns the n lowest bits. As a side effect, the original bit pattern will be shifted to the right b
test/gtest/gtest-all.cc:2908
↓ 6 callersMethodCompile
src/model/feed_forward_net.cc:69
↓ 6 callersFunctionContiguous
src/core/tensor/tensor.cc:1769
↓ 6 callersMethodCount
src/io/lmdb_reader.cc:77
↓ 6 callersFunctionFormatFileLocation
Formats a source file path and a line number as they would appear in an error message from the compiler used to compile this code.
test/gtest/gtest-all.cc:8666
↓ 6 callersFunctionFormatRegexSyntaxError
Helper function used by ValidateRegex() to format error messages.
test/gtest/gtest-all.cc:8460
↓ 6 callersFunctionGetChannel
src/utils/channel.cc:99
↓ 6 callersMethodGetOutputSampleShape
src/model/layer/lrn.h:34
↓ 6 callersFunctionIsInSet
Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
test/gtest/gtest-all.cc:8413
↓ 6 callersFunctionIsPathSeparator
Returns whether the given character is a valid path separator.
test/gtest/gtest-all.cc:7926
↓ 6 callersFunctionParseStringFlag
Parses a string for a string flag, in the form of "--flag=value". On success, stores the value of the flag in *value, and returns true. On failure,
test/gtest/gtest-all.cc:6233
↓ 6 callersMethodPoolingHandle
src/model/operation/pooling.cc:27
↓ 6 callersMethodReset
test/gtest/gtest-all.cc:1382
↓ 6 callersFunctionSkipPrefix
If *pstr starts with the given prefix, modifies *pstr to be right past the prefix and returns true; otherwise leaves *pstr unchanged and returns false
test/gtest/gtest-all.cc:6147
↓ 6 callersMethod__next__
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/dataset_utils/sequence_dataloader.py:79
↓ 6 callersMethod_get_singa_op_type
get the operator type from a given operator Args: op: a given operator Returns: operator type
python/singa/sonnx.py:680
↓ 6 callersFunction_random_fill
Fill the tensor with values sampled from a distribution. With `distribution="normal"`, samples are drawn from a normal distribution centered
python/singa/initializer.py:285
↓ 6 callersMethod_train_one_batch_helper
(self, dev, is_train, use_graph, sequential)
test/python/test_model.py:441
↓ 6 callersMethodbias_term
src/model/layer/convolution.h:66
↓ 6 callersMethodcompile
(self, inputs, is_train=True, use_graph=False, sequential=False)
examples/singa_peft/src/singa_peft/peft_model.py:55
↓ 6 callersFunctioncompsignal
Check and signal for any NaN. \param x first half-precision value to check \param y second half-precision value to check \retval true if either \a x o
include/half.hpp:679
← previousnext →201–300 of 5,531, ranked by callers