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
↓ 6 callers
Method
dot
dot multiply Args: a (CTensor): 2d input tensor. b (CTensor): 2d input tensor. Returns: C
python/singa/autograd.py:4941
↓ 6 callers
Method
eval
(self)
examples/singa_peft/src/singa_peft/peft_model.py:62
↓ 6 callers
Method
failed_test_count
Gets the number of failed tests.
test/gtest/gtest-all.cc:2218
↓ 6 callers
Method
filtering_phase
(self, N, K, train_loader=None)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/run_ms.py:301
↓ 6 callers
Method
from_pretrained
(self, W, freeze=True)
python/singa/layer.py:494
↓ 6 callers
Function
get_int
(b)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/data/mnist.py:62
↓ 6 callers
Function
get_int
(b)
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/autograd/mnist_cnn.py:97
↓ 6 callers
Function
get_int
(b)
examples/largedataset_cnn/autograd/mnist_cnn.py:97
↓ 6 callers
Function
get_int
(b)
examples/cifar_distributed_cnn/data/mnist.py:62
↓ 6 callers
Function
get_int
(b)
examples/cifar_distributed_cnn/autograd/mnist_cnn.py:97
↓ 6 callers
Function
get_int
(b)
examples/singa_peft/examples/data/mnist.py:63
↓ 6 callers
Function
get_int
(b)
examples/singa_peft/examples/autograd/mnist_cnn.py:97
↓ 6 callers
Function
get_int
(b)
examples/cnn/data/mnist.py:62
↓ 6 callers
Function
get_int
(b)
examples/cnn/autograd/mnist_cnn.py:97
↓ 6 callers
Function
get_int
(b)
examples/cnn_ms/data/mnist.py:62
↓ 6 callers
Function
get_int
(b)
examples/cnn_ms/autograd/mnist_cnn.py:97
↓ 6 callers
Method
get_params
(self)
examples/singa_peft/examples/model/trans.py:609
↓ 6 callers
Method
get_states
(self)
python/singa/opt.py:322
↓ 6 callers
Method
get_value
src/core/tensor/tensor.cc:868
↓ 6 callers
Method
new_arch_scratch_with_default_setting
(self, model_encoding: str, bn: bool)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:498
↓ 6 callers
Function
reduce_variable
(variable, dist_opt, reducer)
examples/healthcare/application/Cardiovascular_Disease/train.py:77
↓ 6 callers
Function
reduce_variable
(variable, dist_opt, reducer)
examples/singa_peft/examples/train.py:77
↓ 6 callers
Method
set
test/gtest/gtest.h:2599
↓ 6 callers
Method
set_optimizer
(self, optimizer)
examples/singa_peft/examples/model/cnn.py:72
↓ 6 callers
Method
time_elapsed
include/singa/core/scheduler.h:70
↓ 6 callers
Method
train
(self)
examples/singa_peft/examples/model/lsgan.py:70
↓ 6 callers
Method
verbosity
Verbosity of the time profiling function: verbosity == 0 (default) -> no logging verbosity == 1 -> display forward and backward propagation time verbo
include/singa/core/device.h:119
↓ 5 callers
Method
AddInEdge
src/core/scheduler/scheduler.cc:32
↓ 5 callers
Method
AddOutEdge
src/core/scheduler/scheduler.cc:34
↓ 5 callers
Method
Decode
src/io/csv_decoder.cc:27
↓ 5 callers
Function
Div
src/core/tensor/tensor.cc:1164
↓ 5 callers
Method
EnableDestStderr
Disabled by default.
include/singa/utils/channel.h:43
↓ 5 callers
Method
Encode
src/io/jpg_encoder.cc:29
↓ 5 callers
Function
EqFailure
Constructs and returns the message for an equality assertion (e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure. The first four parameters are the expressio
test/gtest/gtest-all.cc:2484
↓ 5 callers
Function
FormatDeathTestOutput
Returns an indented copy of stderr output for a death test. This makes distinguishing death test output lines from regular log lines much easier.
test/gtest/gtest-all.cc:6987
↓ 5 callers
Method
Gaussian
include/singa/model/initializer.h:71
↓ 5 callers
Function
GenConvConf
examples/cpp/imagenet/alexnet.cc:38
↓ 5 callers
Function
GenPoolingConf
examples/cpp/cifar10/vgg-parallel.cc:68
↓ 5 callers
Method
GetAllocatedMem
src/core/device/cuda_gpu.cc:177
↓ 5 callers
Function
GetBitValue
test/singa/test_cudnn_dropout.cc:28
↓ 5 callers
Function
GetLastErrnoDescription
Returns the message describing the last system error in errno.
test/gtest/gtest-all.cc:6798
↓ 5 callers
Function
InitChannel
src/utils/channel.cc:89
↓ 5 callers
Function
Int32FromEnvOrDie
Parses the environment variable var as an Int32. If it is unset, returns default_val. If it is not an Int32, prints an error and aborts.
test/gtest/gtest-all.cc:5910
↓ 5 callers
Function
MultColumn
Multiply column 'v' and each column of matrix M; write results into 'out'
src/core/tensor/tensor.cc:1471
↓ 5 callers
Function
Pow
src/core/tensor/tensor_math.h:244
↓ 5 callers
Function
RowMax
src/core/tensor/tensor.cc:1256
↓ 5 callers
Function
Sqrt
src/core/tensor/tensor_math.h:290
↓ 5 callers
Function
StringFromGTestEnv
Reads and returns the string environment variable corresponding to the given flag; if it's not set, returns default_value.
test/gtest/gtest-all.cc:9008
↓ 5 callers
Function
Sum
src/core/tensor/tensor.cc:1229
↓ 5 callers
Method
T
shallow copy. Returns: a new Tensor which shares the underlying data memory (shallow copy).
python/singa/tensor.py:472
↓ 5 callers
Function
Train
examples/cpp/cifar10/cnn.cc:140
↓ 5 callers
Function
Transform
src/core/tensor/tensor_math.h:344
↓ 5 callers
Method
__init__
(self, data_size=10, perceptron_size=100, num_classes=10)
test/python/test_model.py:82
↓ 5 callers
Function
abs
Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = abs(x), x is an element of t
examples/model_selection/Trails/singa_pkg_code/tensor.py:910
↓ 5 callers
Function
check_dataset_exist
(dirpath)
examples/singa_peft/examples/data/mnist.py:27
↓ 5 callers
Method
clone
Returns: a new Tensor which does deep copy of this tensor
python/singa/tensor.py:404
↓ 5 callers
Method
compile
Compile and initialize the model This function will automatically derive the shape of parameters in each sublayer based on the shape
python/singa/model.py:156
↓ 5 callers
Method
copy_data
Copy data from other Tensor instance. Args: t (Tensor): source Tensor.
examples/model_selection/Trails/singa_pkg_code/tensor.py:349
↓ 5 callers
Method
dirty
include/singa/core/scheduler.h:169
↓ 5 callers
Method
enhance
Apply random enhancement for Color,Contrast,Brightness,Sharpness. Args: scale(float): enhancement degree is from [1-scale, 1+scal
python/singa/image_tool.py:614
↓ 5 callers
Function
fabs
Absolute value. See also:** Documentation for [std::fabs](https://en.cppreference.com/w/cpp/numeric/math/fabs). \param arg operand \return absolute va
include/half.hpp:2728
↓ 5 callers
Function
floor
Nearest integer not greater than half value. See also:** Documentation for [std::floor](https://en.cppreference.com/w/cpp/numeric/math/floor). \param
include/half.hpp:4053
↓ 5 callers
Method
forward_gen
(self, x)
examples/gan/model/gan_mlp.py:60
↓ 5 callers
Method
forward_gen
(self, x)
examples/singa_peft/examples/model/gan_mlp.py:60
↓ 5 callers
Method
fused_all_reduce_half
Performs all reduce of the tensors after fusing and converting them to FP16. Args: tensor(List of Tensors): a list of tensors
python/singa/opt.py:775
↓ 5 callers
Function
init_search_space
:param args: :param loapi: Local score API, records all scored arch, 101 use it to detect which arch is scored. :return:
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/init_search_space.py:26
↓ 5 callers
Function
init_xDesc
src/model/operation/rnn.cc:143
↓ 5 callers
Function
init_yDesc
src/model/operation/rnn.cc:132
↓ 5 callers
Method
initialized
include/singa/core/common.h:85
↓ 5 callers
Method
line
test/gtest/gtest.h:8406
↓ 5 callers
Function
listeners
Provides access to the event listener list.
test/gtest/gtest-all.cc:1000
↓ 5 callers
Method
load
(self, path, grayscale=False)
python/singa/image_tool.py:231
↓ 5 callers
Function
next_offset
src/core/tensor/tensor_math_cpp.h:126
↓ 5 callers
Method
original_working_dir
Returns the working directory when the first TEST() or TEST_F() was executed.
test/gtest/gtest-all.cc:5418
↓ 5 callers
Function
product
(shape)
python/singa/tensor.py:814
↓ 5 callers
Function
product
(shape)
examples/model_selection/Trails/singa_pkg_code/tensor.py:783
↓ 5 callers
Method
query_200_epoch
(self, arch_id: str, dataset, epoch_num: int = 199)
examples/model_selection/Trails/internal/ml/model_selection/src/query_api/query_api_img.py:196
↓ 5 callers
Method
repeat
Repeat data of a tensor Args: repeats(int or a sequence): the number that the tensor need to repeat for axis (int):th
python/singa/tensor.py:411
↓ 5 callers
Method
reset
test/gtest/gtest.h:2014
↓ 5 callers
Function
round
Nearest integer. See also:** Documentation for [std::round](https://en.cppreference.com/w/cpp/numeric/math/round). \param arg half to round \return ne
include/half.hpp:4069
↓ 5 callers
Method
skip_iteration
the number of initial iteration that is skipped for time profiling
include/singa/core/device.h:121
↓ 5 callers
Method
to_host
Move the tensor data onto the default host CppCPU device.
python/singa/tensor.py:321
↓ 5 callers
Method
train
Set the model in evaluation mode. Args: mode(bool): when mode is True, this model will enter training mode
examples/model_selection/Trails/singa_pkg_code/model.py:233
↓ 5 callers
Function
transpose
To transpose the tensor Args: t: input tensor axes: axes to transpose Returns: the transposed tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:818
↓ 4 callers
Method
Apply
src/model/optimizer/optimizer.cc:78
↓ 4 callers
Function
CmpHelperEQ
test/gtest/gtest.h:18851
↓ 4 callers
Function
ComputeCrossEntropy
src/core/tensor/tensor.cc:1723
↓ 4 callers
Function
CpuPoolingForward
src/model/operation/pooling.cc:95
↓ 4 callers
Function
CreateLayer
include/singa/model/layer.h:238
↓ 4 callers
Method
CudnnBatchNormHandle
src/model/operation/batchnorm.cc:261
↓ 4 callers
Method
CudnnRNNHandle
src/model/operation/rnn.cc:27
↓ 4 callers
Function
FOpen
test/gtest/gtest.h:2879
↓ 4 callers
Method
Failed
Returns true iff the test failed.
test/gtest/gtest-all.cc:3331
↓ 4 callers
Function
FormatCountableNoun
Formats a countable noun. Depending on its quantity, either the singular form or the plural form is used. e.g. FormatCountableNoun(1, "formula", "fo
test/gtest/gtest-all.cc:3963
↓ 4 callers
Function
FormatForComparisonFailureMessage
test/gtest/gtest.h:18844
↓ 4 callers
Function
FormatTestCount
Formats the count of tests.
test/gtest/gtest-all.cc:3971
↓ 4 callers
Function
GetElementOr
test/gtest/gtest-all.cc:703
↓ 4 callers
Method
GetValue
src/core/tensor/tensor.cc:883
↓ 4 callers
Method
L2
DEPRECATED use l2()
src/core/tensor/tensor.cc:846
↓ 4 callers
Method
Push
* Push an element into the queue. Blocking operation. * @return true if success; */
include/singa/utils/safe_queue.h:45
← previous
next →
301–400 of 5,531, ranked by callers