Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ functions
Functions
5,531 in github.com/apache/singa
⨍
Functions
5,531
◇
Types & classes
1,090
↳
Endpoints
3
↓ 9 callers
Method
elapsed_time
Gets the elapsed time, in milliseconds.
test/gtest/gtest-all.cc:5203
↓ 9 callers
Function
fn
src/core/tensor/tensor.cc:1080
↓ 9 callers
Method
fused_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 callers
Method
get
(self)
python/singa/image_tool.py:244
↓ 9 callers
Method
height
src/model/layer/pooling.h:86
↓ 9 callers
Method
if_cuda_avaiable
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/evaluator.py:104
↓ 9 callers
Function
init_data_desc
src/model/operation/rnn.cc:528
↓ 9 callers
Method
kernel_h
src/model/layer/pooling.h:79
↓ 9 callers
Method
kernel_w
src/model/layer/pooling.h:78
↓ 9 callers
Method
pad_h
src/model/layer/pooling.h:81
↓ 9 callers
Method
pad_w
src/model/layer/pooling.h:80
↓ 9 callers
Method
save
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/tools/utils.py:393
↓ 9 callers
Method
set_optimizer
(self, optimizer)
examples/healthcare/models/malaria_net.py:126
↓ 9 callers
Function
sign_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 callers
Method
size
include/singa/core/tensor.h:139
↓ 9 callers
Method
stride_h
src/model/layer/pooling.h:83
↓ 9 callers
Method
stride_w
src/model/layer/pooling.h:82
↓ 9 callers
Function
tanh
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 callers
Method
train
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 callers
Method
width
src/model/layer/pooling.h:87
↓ 8 callers
Function
Close
test/gtest/gtest.h:2896
↓ 8 callers
Function
ConcatenateColumns
TODO(wangwei) add a copypatch function for improve the efficiency on GPU.
src/core/tensor/tensor.cc:1382
↓ 8 callers
Method
Elapsed
include/singa/utils/timer.h:42
↓ 8 callers
Method
Fill
include/singa/model/initializer.h:99
↓ 8 callers
Function
GetEnv
test/gtest/gtest.h:2899
↓ 8 callers
Function
GetTimeInMillis
Returns the current time in milliseconds.
test/gtest/gtest-all.cc:2264
↓ 8 callers
Function
HandleExceptionsInMethodIfSupported
test/gtest/gtest-all.cc:3570
↓ 8 callers
Function
IsSubstringImpl
test/gtest/gtest-all.cc:2744
↓ 8 callers
Method
MemSize
Return memory size (i.e., Bytes)
include/singa/core/tensor.h:146
↓ 8 callers
Method
Normalize
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 callers
Function
ParseBoolFlag
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 callers
Function
ParseNaturalNumber
test/gtest/gtest-all.cc:1403
↓ 8 callers
Function
PrintCharsAsStringTo
test/gtest/gtest-all.cc:9268
↓ 8 callers
Method
Repeat
src/core/tensor/tensor.cc:421
↓ 8 callers
Method
ResetGraph
include/singa/core/device.h:98
↓ 8 callers
Method
T
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 callers
Method
Tick
Reset the internal time point to the current time
include/singa/utils/timer.h:37
↓ 8 callers
Function
UniversalPrint
test/gtest/gtest.h:9943
↓ 8 callers
Method
_conv_same_pad
(self, dev, pad_mode, is_2d)
test/python/test_operation.py:149
↓ 8 callers
Method
_pooling_same_pad
(self, dev, pad_mode, is_2d)
test/python/test_operation.py:204
↓ 8 callers
Method
as_type
Change the data type. Args: dtype: accepts 'int', 'float', 'singa.kFloat32', 'singa.kInt' Returns: new tenso
python/singa/tensor.py:261
↓ 8 callers
Function
assertTensorEqual
(x,y,decimal=6)
test/python/test_opt.py:32
↓ 8 callers
Method
backward
(self, dy=1.0)
examples/cnn_ms/msmlp/model.py:57
↓ 8 callers
Function
divide64
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 callers
Method
eval
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 callers
Method
evaluate_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 callers
Function
exp2
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 callers
Function
multiply64
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 callers
Method
p2_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 callers
Function
resize
Resize the image to make the smaller side be at the given size
python/singa/image_tool.py:124
↓ 8 callers
Method
set_weight_inputs
(self, key, name)
python/singa/sonnx.py:1016
↓ 8 callers
Method
size
include/singa/core/common.h:77
↓ 8 callers
Function
transpose
To transpose the tensor Args: t: input tensor axes: axes to transpose Returns: the transposed tensor
python/singa/tensor.py:849
↓ 7 callers
Method
BatchNormHandle
src/model/operation/batchnorm.cc:27
↓ 7 callers
Function
BoolFromGTestEnv
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 callers
Method
Channel_shared
src/model/layer/prelu.h:49
↓ 7 callers
Method
DecRefCount
include/singa/core/common.h:82
↓ 7 callers
Function
DivRow
Divide row 'v' by each row of matrix M; write results into 'out'
src/core/tensor/tensor.cc:1464
↓ 7 callers
Function
ForEach
test/gtest/gtest-all.cc:696
↓ 7 callers
Function
GTEST_LOCK_EXCLUDED_
test/gtest/gtest-all.cc:4998
↓ 7 callers
Function
GenReLUConf
examples/cpp/imagenet/alexnet.cc:78
↓ 7 callers
Method
RunGraph
src/core/device/device.cc:67
↓ 7 callers
Function
StringStreamToString
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 callers
Function
SumOverTestCaseList
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 callers
Method
__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 callers
Method
apply
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 callers
Method
backward
(self, dy=1.0)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/msmlp/model.py:56
↓ 7 callers
Method
compile
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 callers
Method
gaussian
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 callers
Function
generate_dataloader
(mini_batch_data, args)
examples/model_selection/Trails/internal/ml/model_selection/pg_interface.py:101
↓ 7 callers
Function
get_list_sample
(l, sample_size)
python/singa/image_tool.py:210
↓ 7 callers
Method
init_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 callers
Method
os_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 callers
Method
set_states
(self, states)
python/singa/opt.py:329
↓ 7 callers
Function
tinydir_close
include/singa/utils/tinydir.h:231
↓ 7 callers
Function
train_test_split
(x, y, val_ratio=0.2)
examples/healthcare/data/diaret.py:78
↓ 6 callers
Function
Abort
test/gtest/gtest-all.cc:8909
↓ 6 callers
Function
AddColumn
src/core/tensor/tensor.cc:1271
↓ 6 callers
Function
Average
=============Matrix operations============================================
src/core/tensor/tensor.cc:1188
↓ 6 callers
Function
ChopLowBits
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 callers
Method
Compile
src/model/feed_forward_net.cc:69
↓ 6 callers
Function
Contiguous
src/core/tensor/tensor.cc:1769
↓ 6 callers
Method
Count
src/io/lmdb_reader.cc:77
↓ 6 callers
Function
FormatFileLocation
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 callers
Function
FormatRegexSyntaxError
Helper function used by ValidateRegex() to format error messages.
test/gtest/gtest-all.cc:8460
↓ 6 callers
Function
GetChannel
src/utils/channel.cc:99
↓ 6 callers
Method
GetOutputSampleShape
src/model/layer/lrn.h:34
↓ 6 callers
Function
IsInSet
Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
test/gtest/gtest-all.cc:8413
↓ 6 callers
Function
IsPathSeparator
Returns whether the given character is a valid path separator.
test/gtest/gtest-all.cc:7926
↓ 6 callers
Function
ParseStringFlag
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 callers
Method
PoolingHandle
src/model/operation/pooling.cc:27
↓ 6 callers
Method
Reset
test/gtest/gtest-all.cc:1382
↓ 6 callers
Function
SkipPrefix
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 callers
Method
__next__
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/dataset_utils/sequence_dataloader.py:79
↓ 6 callers
Method
_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 callers
Function
_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 callers
Method
_train_one_batch_helper
(self, dev, is_train, use_graph, sequential)
test/python/test_model.py:441
↓ 6 callers
Method
bias_term
src/model/layer/convolution.h:66
↓ 6 callers
Method
compile
(self, inputs, is_train=True, use_graph=False, sequential=False)
examples/singa_peft/src/singa_peft/peft_model.py:55
↓ 6 callers
Function
compsignal
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
← previous
next →
201–300 of 5,531, ranked by callers