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
↓ 978 callers
Method
block
src/core/scheduler/scheduler.cc:61
↓ 878 callers
Method
shape
include/singa/core/tensor.h:95
↓ 503 callers
Method
append
(self, img)
python/singa/image_tool.py:240
↓ 437 callers
Method
Tensor
src/core/tensor/tensor.cc:43
↓ 349 callers
Method
size
Returns the number of TestPartResult objects in the array.
test/gtest/gtest-all.cc:9457
↓ 331 callers
Method
device
include/singa/core/tensor.h:82
↓ 329 callers
Method
Size
Return number of total elements
include/singa/core/tensor.h:137
↓ 321 callers
Method
data
src/core/common/common.cc:33
↓ 320 callers
Method
mutable_data
src/core/common/common.cc:25
↓ 318 callers
Method
to_device
Move the tensor data onto a given device. Args: device: a swig Device converted from CudaGPU or CppCPU or OpenclGPU
python/singa/tensor.py:312
↓ 286 callers
Method
copy_from_numpy
Copy the data from the numpy array. Args: np_array: source numpy array offset (int): destination offset
examples/model_selection/Trails/singa_pkg_code/tensor.py:331
↓ 234 callers
Method
CopyDataFromHostPtr
src/core/tensor/tensor.cc:250
↓ 219 callers
Method
reshape
Return a new tensor with the given shape, and the original tensor is not changed. Args: shape (list<int>): new shape,
python/singa/tensor.py:232
↓ 197 callers
Method
end
test/gtest/gtest.h:7953
↓ 173 callers
Method
data_type
data type, including kFloat16, kFloat32, kInt
include/singa/core/tensor.h:91
↓ 169 callers
Method
ToHost
include/singa/model/feed_forward_net.h:130
↓ 167 callers
Method
begin
test/gtest/gtest.h:7952
↓ 130 callers
Method
reshape
Return a new tensor with the given shape, and the original tensor is not changed. Args: shape (list<int>): new shape,
examples/model_selection/Trails/singa_pkg_code/tensor.py:231
↓ 119 callers
Method
load
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:470
↓ 115 callers
Function
type
Gets the outcome of the test part.
test/gtest/gtest.h:17115
↓ 106 callers
Method
Exec
src/core/device/device.cc:55
↓ 105 callers
Method
nDim
include/singa/core/tensor.h:100
↓ 101 callers
Method
backward
Args: dy (CTensor): data for the `dL / dy`, L is the loss. Raises: AssertionError: no backward function for t
python/singa/autograd.py:3530
↓ 100 callers
Method
Add
src/model/feed_forward_net.cc:31
↓ 98 callers
Method
lang
Return the programming language for this device.
include/singa/core/device.h:109
↓ 95 callers
Method
Setup
test/gtest/gtest.h:18367
↓ 94 callers
Method
backward_and_sparse_update
Performs backward propagation from the loss and parameter update with sparsification. THIS IS A EXPERIMENTAL FUNCTION FOR RESEARCH PURPOSE:
python/singa/opt.py:994
↓ 90 callers
Method
__init__
(self)
python/singa/autograd.py:3517
↓ 80 callers
Method
empty
include/singa/core/tensor.h:104
↓ 78 callers
Method
set_value
Set all elements of the tensor to be the give value. Args: x (float): a float value to be set to all elements. inplac
python/singa/tensor.py:341
↓ 77 callers
Method
ToDevice
src/model/layer/rnn.cc:99
↓ 73 callers
Method
run
(self)
setup.py:114
↓ 71 callers
Method
__mul__
(self, rhs)
python/singa/tensor.py:685
↓ 70 callers
Method
Forward
src/model/loss/mse.cc:23
↓ 70 callers
Method
clone
Returns: a new Tensor which does deep copy of this tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:373
↓ 68 callers
Method
prepare
parse the ONNX and to create layers Args: model (ModelProto): the loaded ONNX model device (string): CPU or C
python/singa/sonnx.py:1911
↓ 63 callers
Method
wait
src/io/communicator.cc:169
↓ 62 callers
Function
max
Element-wise max of each of the input tensors (with Numpy-style broadcasting support). Args: *x (a list of Tensor): List of tensors f
python/singa/autograd.py:3467
↓ 57 callers
Method
gaussian
Generate a value for each element following a Gaussian distribution. Args: mean (float): mean of the distribution std
python/singa/tensor.py:513
↓ 57 callers
Method
set_value
Set all elements of the tensor to be the give value. Args: x (float): a float value to be set to all elements. inplac
examples/model_selection/Trails/singa_pkg_code/tensor.py:312
↓ 56 callers
Method
EnableGraph
include/singa/core/device.h:69
↓ 52 callers
Method
get
test/gtest/gtest.h:2006
↓ 51 callers
Function
ValuesIn
test/gtest/gtest.h:15874
↓ 51 callers
Method
push
Client push weights to server. Namely server pull weights from clients.
examples/hfl/src/client.py:111
↓ 51 callers
Function
signal
Signal and silence signaling NaN. \param nan half-precision NaN value \return quiet NaN \exception FE_INVALID if \a nan is signaling NaN
include/half.hpp:691
↓ 50 callers
Method
AsType
return new tensor
src/core/tensor/tensor.cc:197
↓ 50 callers
Method
get
(self)
examples/model_selection/Trails/internal/cache-service/cache_service.py:130
↓ 49 callers
Method
backward_and_partial_update
Performs backward propagation from the loss and parameter update using asynchronous training. THIS IS A EXPERIMENTAL FUNCTION FOR RESEARCH PU
python/singa/opt.py:922
↓ 49 callers
Method
write
Call Write method to write a parameter Args: param_name (string): name of the parameter param_val (Tensor): value ten
python/singa/snapshot.py:57
↓ 48 callers
Function
tuple
test/gtest/gtest.h:850
↓ 47 callers
Method
AddOperation
src/core/scheduler/scheduler.cc:406
↓ 47 callers
Method
check_shape
(self, actual, expect)
test/python/test_operation.py:89
↓ 47 callers
Method
getattr
(self, key, default=None)
python/singa/sonnx.py:1007
↓ 46 callers
Method
Sync
src/core/device/device.cc:127
↓ 46 callers
Method
all_reduce
Performs all reduce of a tensor for distributed training. Args: tensor(Tensor): a tensor to be all-reduced
python/singa/opt.py:748
↓ 46 callers
Function
exp
Exponential function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::exp](https://en.cppreference.com
include/half.hpp:2935
↓ 44 callers
Method
backward_and_update_half
Performs backward propagation and parameter update, with FP16 precision communication. THIS IS A EXPERIMENTAL FUNCTION FOR RESEARCH PURPOSE:
python/singa/opt.py:867
↓ 42 callers
Function
Gaussian
src/core/tensor/tensor.cc:1572
↓ 41 callers
Method
CopyData
src/core/tensor/tensor.cc:281
↓ 41 callers
Function
StreamableToString
test/gtest/gtest.h:3315
↓ 41 callers
Method
size
Returns: the number of elements of the tensor.
examples/model_selection/Trails/singa_pkg_code/tensor.py:212
↓ 40 callers
Function
min
Element-wise min of each of the input tensors (with Numpy-style broadcasting support). Args: *x (a list of Tensor): List of tenso
python/singa/autograd.py:3120
↓ 39 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/cnn_ms/pkg_model_code/model.py:159
↓ 38 callers
Function
CopyDataToFrom
====================Tensor Operations=======================================
src/core/tensor/tensor.cc:606
↓ 38 callers
Method
as_type
Change the data type. Args: dtype: accepts 'int', 'float', 'singa.kFloat32', 'singa.kInt' Returns: new tenso
examples/model_selection/Trails/singa_pkg_code/tensor.py:260
↓ 37 callers
Method
Clone
test/gtest/gtest.h:10211
↓ 37 callers
Method
Read
src/io/snapshot.cc:107
↓ 37 callers
Method
SetValue
src/core/tensor/tensor.cc:849
↓ 36 callers
Method
read
Call read method to load all (param_name, param_val) Returns: a dict of (parameter name, parameter Tensor)
python/singa/snapshot.py:66
↓ 35 callers
Method
Backward
src/model/loss/mse.cc:37
↓ 35 callers
Function
Product
include/singa/core/tensor.h:314
↓ 35 callers
Method
uniform
Generate a value for each element following a uniform distribution. Args: low (float): the lower bound high (float):
examples/model_selection/Trails/singa_pkg_code/tensor.py:500
↓ 34 callers
Method
SetValue
Sets a new value, overriding the one supplied in the constructor.
test/gtest/gtest.h:17896
↓ 34 callers
Method
transpose
To transpose the tensor Args: axes: axes to transpose Returns: new transposed tensor
python/singa/tensor.py:191
↓ 33 callers
Function
_call_singa_func
this function calls singa global functions that returns Tensor and create new python Tensor instance e.g., Tensor [singa_func](args..
examples/model_selection/Trails/singa_pkg_code/tensor.py:1722
↓ 32 callers
Method
name
Each layer instance would optionally have a name. Used for debugging and logging.
include/singa/model/layer.h:217
↓ 31 callers
Method
GetString
Gets the text streamed to this object so far as an std::string. Each '\0' character in the buffer is replaced with "\\0".
test/gtest/gtest-all.cc:2430
↓ 31 callers
Function
Setup
test/gtest/gtest.h:17864
↓ 30 callers
Method
SetRandSeed
src/core/device/cpp_cpu.cc:36
↓ 30 callers
Function
WrapHandle
include/singa/utils/opencl_utils.h:51
↓ 30 callers
Function
_call_singa_func
this function calls singa global functions that returns Tensor and create new python Tensor instance e.g., Tensor [singa_func](args..
python/singa/tensor.py:1757
↓ 30 callers
Method
copy_from
Copy the data from the numpy array or other Tensor instance Args: t (Tensor or np array): source Tensor or numpy array
python/singa/tensor.py:390
↓ 30 callers
Function
init_hc_Desc
src/model/operation/rnn.cc:153
↓ 29 callers
Method
copy_from
Copy the data from the numpy array or other Tensor instance Args: t (Tensor or np array): source Tensor or numpy array
examples/model_selection/Trails/singa_pkg_code/tensor.py:359
↓ 29 callers
Function
run_python_function
( py_module: &Lazy<Py<PyModule>>, parameters: &String, function_name: &str, )
examples/model_selection/Trails/internal/pg_extension/src/bindings/ml_register.rs:31
↓ 29 callers
Method
transpose
src/model/layer/dense.h:56
↓ 28 callers
Function
GetCudnnDataType
src/model/layer/cudnn_utils.h:28
↓ 28 callers
Method
start
Start the client. This method will first connect to the server. Then global rank is sent to the server.
examples/hfl/src/client.py:87
↓ 28 callers
Method
transpose
To transpose the tensor Args: axes: axes to transpose Returns: new transposed tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:190
↓ 27 callers
Method
SetVerbosity
include/singa/core/device.h:126
↓ 27 callers
Function
invalid
Raise domain error and return NaN. return quiet NaN \exception FE_INVALID
include/half.hpp:743
↓ 27 callers
Function
sqrt
include/half.hpp:1480
↓ 26 callers
Method
Clone
src/model/feed_forward_net.cc:107
↓ 26 callers
Function
raise
Raise floating-point exception. \param flags exceptions to raise \param cond condition to raise exceptions for
include/half.hpp:625
↓ 25 callers
Method
Apply
history = history * momentum + grad * lr value = value - history
src/model/optimizer/sgd.cc:34
↓ 25 callers
Function
ArgPos
include/singa/utils/string.h:46
↓ 25 callers
Function
ColoredPrintf
Helpers for printing colored strings to stdout. Note that on Windows, we cannot simply emit special characters and have the terminal change colors. Th
test/gtest/gtest-all.cc:4105
↓ 25 callers
Method
__init__
Args: input_size (int): The number of expected features in the input x hidden_size (int): The number of features in
python/singa/layer.py:1134
↓ 24 callers
Function
Mult
src/core/tensor/tensor.cc:1616
↓ 24 callers
Method
NewBlock
Todo(Wangwei) Get Block From The Memory manager
src/core/device/device.cc:87
next →
1–100 of 5,531, ranked by callers