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
↓ 23 callers
Function
check_exist_or_download
(url)
examples/onnx/utils.py:57
↓ 23 callers
Method
id
include/singa/core/device.h:106
↓ 23 callers
Method
type
include/singa/core/scheduler.h:125
↓ 22 callers
Function
CopyRows
src/core/tensor/tensor.cc:1410
↓ 22 callers
Function
GetUnitTestImpl
Convenience function for accessing the global UnitTest implementation object.
test/gtest/gtest-all.cc:1337
↓ 22 callers
Method
NcclIdHolder
src/io/communicator.cc:49
↓ 22 callers
Method
Open
src/io/lmdb_writer.cc:27
↓ 22 callers
Method
PrintTimeProfiling
src/core/device/device.cc:84
↓ 22 callers
Method
_common_singa_tensor_to_onnx_node
get a onnx node from singa operator, prepare its type, inputs and outputs Args: op: a given operator Args:
python/singa/sonnx.py:864
↓ 22 callers
Method
device_check
Check if the devices of the input tensor are the same. Keep the device where each tensors is located the same as the first tensor. C
python/singa/layer.py:187
↓ 22 callers
Function
impl
Accessors for the implementation object.
test/gtest/gtest.h:18668
↓ 21 callers
Method
Close
src/io/lmdb_writer.cc:57
↓ 21 callers
Function
Reshape
src/core/tensor/tensor.cc:1794
↓ 21 callers
Method
Write
src/io/snapshot.cc:86
↓ 21 callers
Method
eval
Sets the model in evaluation mode.
examples/cnn_ms/pkg_model_code/model.py:222
↓ 20 callers
Function
log
Natural logarithm. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::log](https://en.cppreference.com/w/
include/half.hpp:3061
↓ 20 callers
Method
ndim
Returns: the number of dimensions of the tensor.
python/singa/tensor.py:170
↓ 20 callers
Method
to_device
Move the tensor data onto a given device. Args: device: a swig Device converted from CudaGPU or CppCPU or OpenclGPU
examples/model_selection/Trails/singa_pkg_code/tensor.py:283
↓ 20 callers
Method
train
(self)
examples/gan/lsgan.py:70
↓ 19 callers
Function
AssertionSuccess
Makes a successful assertion result.
test/gtest/gtest-all.cc:2452
↓ 19 callers
Method
FreeBlock
TODO(wangwei) return Block to the memory manager
src/core/device/device.cc:104
↓ 19 callers
Method
backward_and_update
Performs backward propagation from the loss and parameter update. From the loss, it performs backward propagation to get the gradients and do
python/singa/opt.py:826
↓ 19 callers
Method
index
test/gtest/gtest.h:8407
↓ 19 callers
Function
isnan
Check for NaN. See also:** Documentation for [std::isnan](https://en.cppreference.com/w/cpp/numeric/math/isnan). \param arg number to check \retval tr
include/half.hpp:4359
↓ 19 callers
Method
set_attr_inputs
(self, key, name)
python/singa/sonnx.py:1010
↓ 19 callers
Function
sum
Sum of tensor elements over given axis Args: t: Singa.tensor The array_like tensor to be sumed axis: None or int or t
examples/model_selection/Trails/singa_pkg_code/tensor.py:1009
↓ 18 callers
Function
SumRows
src/core/tensor/tensor.cc:1523
↓ 18 callers
Function
generate_tensor_nd_desc
src/core/tensor/tensor_math_cuda.h:116
↓ 18 callers
Method
graph_enabled
include/singa/core/device.h:113
↓ 18 callers
Method
size
Returns: the number of elements of the tensor.
python/singa/tensor.py:213
↓ 17 callers
Method
Mode
src/model/layer/activation.h:45
↓ 17 callers
Function
SizeOf
include/singa/core/tensor.h:40
↓ 17 callers
Method
__add__
(self, rhs)
python/singa/tensor.py:673
↓ 17 callers
Function
_cTensor_to_pyTensor
(cTensor)
test/python/test_api.py:66
↓ 16 callers
Function
AssertionFailure
Makes a failed assertion result.
test/gtest/gtest-all.cc:2457
↓ 16 callers
Function
FilePath
test/gtest/gtest.h:3549
↓ 16 callers
Method
apply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
examples/cnn_ms/train_cnn.py:149
↓ 16 callers
Method
close
Close the server.
examples/hfl/src/client.py:97
↓ 16 callers
Function
download_model
(url)
examples/onnx/utils.py:28
↓ 16 callers
Method
register_layers
Register a list of sublayers. Can only be called once in each subclass. Args: *args: a list of sublayers or a dictionar
python/singa/layer.py:265
↓ 16 callers
Method
run
(cls, logger, epoch, iter_per_epoch, model, data_loader, opt_metric, args, optimizer=None, namespa
examples/model_selection/Trails/internal/ml/model_selection/src/eva_engine/phase2/algo/trainer.py:787
↓ 15 callers
Function
SubRow
src/core/tensor/tensor.cc:1506
↓ 15 callers
Method
apply
Performs a single optimization step. Args: param_name(String): the name of the param param_value(Tensor): par
python/singa/opt.py:269
↓ 15 callers
Function
read_json
(file_name)
examples/model_selection/Trails/internal/ml/model_selection/src/tools/io_tools.py:24
↓ 14 callers
Function
Broadcast
src/core/tensor/tensor.cc:505
↓ 14 callers
Function
Message
Copy constructor.
test/gtest/gtest.h:3168
↓ 14 callers
Function
MultRow
Multiply row 'v' with each row of matrix M; write results into 'out'
src/core/tensor/tensor.cc:1488
↓ 14 callers
Function
Transpose
normal transpose without axes
src/core/tensor/tensor.cc:542
↓ 14 callers
Method
channels
src/model/layer/pooling.h:85
↓ 14 callers
Method
op_name
include/singa/core/scheduler.h:67
↓ 14 callers
Method
step
(self)
python/singa/opt.py:312
↓ 14 callers
Method
update
Performs a single optimization step. Args: param(Tensor): param values to be update grad(Tensor): param gradi
python/singa/opt.py:738
↓ 13 callers
Function
ConvBNReLU
examples/cpp/cifar10/vgg-parallel.cc:159
↓ 13 callers
Method
__div__
(self, rhs)
python/singa/tensor.py:691
↓ 13 callers
Function
axis_helper
check which axes the x has been broadcasted Args: y_shape: the shape of result x_shape: the shape of x Return: a
test/python/test_operation.py:43
↓ 13 callers
Function
back_broadcast
for a brodcasted tensor, restore its shape of x from y_shape to x_shape Args: y_shape: the shape of result x_shape: the shape
python/singa/autograd.py:52
↓ 13 callers
Function
pow
Power function. This function may be 1 ULP off the correctly rounded exact result for any rounding mode in ~0.00025% of inputs. See also:** Documenta
include/half.hpp:3402
↓ 13 callers
Function
select
Select value or signaling NaN. \param x preferred half-precision value \param y ignored half-precision value except for signaling NaN \return \a y if
include/half.hpp:731
↓ 12 callers
Method
CopyDataToFrom
src/core/device/device.cc:111
↓ 12 callers
Function
from_raw_tensor
(t)
examples/model_selection/Trails/singa_pkg_code/tensor.py:758
↓ 12 callers
Method
set_bias
src/model/layer/dense.h:64
↓ 12 callers
Method
set_weight
src/model/layer/dense.h:60
↓ 12 callers
Method
uniform
Generate a value for each element following a uniform distribution. Args: low (float): the lower bound high (float):
python/singa/tensor.py:531
↓ 12 callers
Method
update
(self, alphas_normal, alphas_reduce, val_loss)
examples/model_selection/Trails/internal/ml/model_selection/src/tools/utils.py:380
↓ 11 callers
Function
Axpy
src/core/tensor/tensor.cc:1589
↓ 11 callers
Method
BaseGenerator
test/gtest/gtest.h:10204
↓ 11 callers
Method
Clone
src/core/tensor/tensor.cc:464
↓ 11 callers
Function
CountIf
test/gtest/gtest-all.cc:683
↓ 11 callers
Function
PrintTupleTo
test/gtest/gtest.h:10016
↓ 11 callers
Method
backward
(self, dy=1.0)
examples/msmlp/model.py:56
↓ 11 callers
Method
context
include/singa/core/device.h:111
↓ 11 callers
Method
getSize
src/io/network/message.cc:52
↓ 11 callers
Method
ndim
Returns: the number of dimensions of the tensor.
examples/model_selection/Trails/singa_pkg_code/tensor.py:169
↓ 11 callers
Function
pole
Raise pole error and return infinity. \param sign half-precision value with sign bit only \return half-precision infinity with sign of \a sign \except
include/half.hpp:755
↓ 11 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/internal/ml/model_selection/src/eva_engine/phase1/algo/singa_ms/cnn_ms/pkg_model_code/model.py:213
↓ 10 callers
Function
ConcatenateRows
src/core/tensor/tensor.cc:1360
↓ 10 callers
Function
DeathTestAbort
Routine for aborting the program which is safe to call from an exec-style death test child process, in which case the error message is propagated back
test/gtest/gtest-all.cc:6745
↓ 10 callers
Method
Flush
Flush is to "commit to DB"
src/io/lmdb_writer.cc:73
↓ 10 callers
Function
GenDropoutConf
examples/cpp/cifar10/vgg-parallel.cc:149
↓ 10 callers
Function
PrintToString
test/gtest/gtest.h:10038
↓ 10 callers
Function
SumColumns
src/core/tensor/tensor.cc:1508
↓ 10 callers
Function
ToLowerCase
include/singa/utils/string.h:39
↓ 10 callers
Function
Uniform
src/core/tensor/tensor.cc:1556
↓ 10 callers
Method
__sub__
(self, rhs)
python/singa/tensor.py:679
↓ 10 callers
Function
from_raw_tensor
(t)
python/singa/tensor.py:789
↓ 10 callers
Function
get_default_device
Get the default host device which is a CppCPU device
python/singa/device.py:130
↓ 10 callers
Function
log2
Fixed point binary logarithm. This uses the BKM algorithm in L-mode. \param m mantissa in [1,2) as Q1.30 \param n number of iterations (at most 32) \r
include/half.hpp:1531
↓ 10 callers
Method
main
(String argv[])
test/java/Test.java:26
↓ 10 callers
Function
write_json
(file_name, data)
examples/model_selection/Trails/internal/ml/model_selection/src/tools/io_tools.py:36
↓ 9 callers
Function
AddRow
src/core/tensor/tensor.cc:1294
↓ 9 callers
Method
AtEnd
test/gtest/gtest.h:13858
↓ 9 callers
Function
EltwiseMult
src/core/tensor/tensor_math.h:163
↓ 9 callers
Method
Format
test/gtest/gtest.h:18770
↓ 9 callers
Method
Get
test/gtest/gtest-all.cc:1381
↓ 9 callers
Method
Passed
Returns true iff the unit test passed (i.e. all test cases passed).
test/gtest/gtest-all.cc:5208
↓ 9 callers
Method
Setup
src/model/layer/rnn.cc:29
↓ 9 callers
Function
Square
src/core/tensor/tensor_math.h:296
↓ 9 callers
Method
__init__
Args: ut_channels: int, the channel of output, also is the number of filters bias: bool
examples/trans/model.py:552
↓ 9 callers
Method
__init__
Args: ut_channels: int, the channel of output, also is the number of filters bias: bool
examples/singa_peft/examples/model/trans.py:545
↓ 9 callers
Method
dtype_check
check if all input have same data type. Args: *inputs: input args consisting of only PyTensors
python/singa/layer.py:171
← previous
next →
101–200 of 5,531, ranked by callers