MCPcopy Create free account

hub / github.com/apache/singa / functions

Functions5,531 in github.com/apache/singa

↓ 978 callersMethodblock
src/core/scheduler/scheduler.cc:61
↓ 878 callersMethodshape
include/singa/core/tensor.h:95
↓ 503 callersMethodappend
(self, img)
python/singa/image_tool.py:240
↓ 437 callersMethodTensor
src/core/tensor/tensor.cc:43
↓ 349 callersMethodsize
Returns the number of TestPartResult objects in the array.
test/gtest/gtest-all.cc:9457
↓ 331 callersMethoddevice
include/singa/core/tensor.h:82
↓ 329 callersMethodSize
Return number of total elements
include/singa/core/tensor.h:137
↓ 321 callersMethoddata
src/core/common/common.cc:33
↓ 320 callersMethodmutable_data
src/core/common/common.cc:25
↓ 318 callersMethodto_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 callersMethodcopy_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 callersMethodCopyDataFromHostPtr
src/core/tensor/tensor.cc:250
↓ 219 callersMethodreshape
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 callersMethodend
test/gtest/gtest.h:7953
↓ 173 callersMethoddata_type
data type, including kFloat16, kFloat32, kInt
include/singa/core/tensor.h:91
↓ 169 callersMethodToHost
include/singa/model/feed_forward_net.h:130
↓ 167 callersMethodbegin
test/gtest/gtest.h:7952
↓ 130 callersMethodreshape
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 callersMethodload
(self)
examples/model_selection/Trails/internal/ml/model_selection/src/search_space/mlp_api/space.py:470
↓ 115 callersFunctiontype
Gets the outcome of the test part.
test/gtest/gtest.h:17115
↓ 106 callersMethodExec
src/core/device/device.cc:55
↓ 105 callersMethodnDim
include/singa/core/tensor.h:100
↓ 101 callersMethodbackward
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 callersMethodAdd
src/model/feed_forward_net.cc:31
↓ 98 callersMethodlang
Return the programming language for this device.
include/singa/core/device.h:109
↓ 95 callersMethodSetup
test/gtest/gtest.h:18367
↓ 94 callersMethodbackward_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 callersMethod__init__
(self)
python/singa/autograd.py:3517
↓ 80 callersMethodempty
include/singa/core/tensor.h:104
↓ 78 callersMethodset_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 callersMethodToDevice
src/model/layer/rnn.cc:99
↓ 73 callersMethodrun
(self)
setup.py:114
↓ 71 callersMethod__mul__
(self, rhs)
python/singa/tensor.py:685
↓ 70 callersMethodForward
src/model/loss/mse.cc:23
↓ 70 callersMethodclone
Returns: a new Tensor which does deep copy of this tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:373
↓ 68 callersMethodprepare
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 callersMethodwait
src/io/communicator.cc:169
↓ 62 callersFunctionmax
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 callersMethodgaussian
Generate a value for each element following a Gaussian distribution. Args: mean (float): mean of the distribution std
python/singa/tensor.py:513
↓ 57 callersMethodset_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 callersMethodEnableGraph
include/singa/core/device.h:69
↓ 52 callersMethodget
test/gtest/gtest.h:2006
↓ 51 callersFunctionValuesIn
test/gtest/gtest.h:15874
↓ 51 callersMethodpush
Client push weights to server. Namely server pull weights from clients.
examples/hfl/src/client.py:111
↓ 51 callersFunctionsignal
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 callersMethodAsType
return new tensor
src/core/tensor/tensor.cc:197
↓ 50 callersMethodget
(self)
examples/model_selection/Trails/internal/cache-service/cache_service.py:130
↓ 49 callersMethodbackward_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 callersMethodwrite
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 callersFunctiontuple
test/gtest/gtest.h:850
↓ 47 callersMethodAddOperation
src/core/scheduler/scheduler.cc:406
↓ 47 callersMethodcheck_shape
(self, actual, expect)
test/python/test_operation.py:89
↓ 47 callersMethodgetattr
(self, key, default=None)
python/singa/sonnx.py:1007
↓ 46 callersMethodSync
src/core/device/device.cc:127
↓ 46 callersMethodall_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 callersFunctionexp
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 callersMethodbackward_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 callersFunctionGaussian
src/core/tensor/tensor.cc:1572
↓ 41 callersMethodCopyData
src/core/tensor/tensor.cc:281
↓ 41 callersFunctionStreamableToString
test/gtest/gtest.h:3315
↓ 41 callersMethodsize
Returns: the number of elements of the tensor.
examples/model_selection/Trails/singa_pkg_code/tensor.py:212
↓ 40 callersFunctionmin
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 callersMethodcompile
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 callersFunctionCopyDataToFrom
====================Tensor Operations=======================================
src/core/tensor/tensor.cc:606
↓ 38 callersMethodas_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 callersMethodClone
test/gtest/gtest.h:10211
↓ 37 callersMethodRead
src/io/snapshot.cc:107
↓ 37 callersMethodSetValue
src/core/tensor/tensor.cc:849
↓ 36 callersMethodread
Call read method to load all (param_name, param_val) Returns: a dict of (parameter name, parameter Tensor)
python/singa/snapshot.py:66
↓ 35 callersMethodBackward
src/model/loss/mse.cc:37
↓ 35 callersFunctionProduct
include/singa/core/tensor.h:314
↓ 35 callersMethoduniform
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 callersMethodSetValue
Sets a new value, overriding the one supplied in the constructor.
test/gtest/gtest.h:17896
↓ 34 callersMethodtranspose
To transpose the tensor Args: axes: axes to transpose Returns: new transposed tensor
python/singa/tensor.py:191
↓ 33 callersFunction_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 callersMethodname
Each layer instance would optionally have a name. Used for debugging and logging.
include/singa/model/layer.h:217
↓ 31 callersMethodGetString
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 callersFunctionSetup
test/gtest/gtest.h:17864
↓ 30 callersMethodSetRandSeed
src/core/device/cpp_cpu.cc:36
↓ 30 callersFunctionWrapHandle
include/singa/utils/opencl_utils.h:51
↓ 30 callersFunction_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 callersMethodcopy_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 callersFunctioninit_hc_Desc
src/model/operation/rnn.cc:153
↓ 29 callersMethodcopy_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 callersFunctionrun_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 callersMethodtranspose
src/model/layer/dense.h:56
↓ 28 callersFunctionGetCudnnDataType
src/model/layer/cudnn_utils.h:28
↓ 28 callersMethodstart
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 callersMethodtranspose
To transpose the tensor Args: axes: axes to transpose Returns: new transposed tensor
examples/model_selection/Trails/singa_pkg_code/tensor.py:190
↓ 27 callersMethodSetVerbosity
include/singa/core/device.h:126
↓ 27 callersFunctioninvalid
Raise domain error and return NaN. return quiet NaN \exception FE_INVALID
include/half.hpp:743
↓ 27 callersFunctionsqrt
include/half.hpp:1480
↓ 26 callersMethodClone
src/model/feed_forward_net.cc:107
↓ 26 callersFunctionraise
Raise floating-point exception. \param flags exceptions to raise \param cond condition to raise exceptions for
include/half.hpp:625
↓ 25 callersMethodApply
history = history * momentum + grad * lr value = value - history
src/model/optimizer/sgd.cc:34
↓ 25 callersFunctionArgPos
include/singa/utils/string.h:46
↓ 25 callersFunctionColoredPrintf
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 callersMethod__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 callersFunctionMult
src/core/tensor/tensor.cc:1616
↓ 24 callersMethodNewBlock
Todo(Wangwei) Get Block From The Memory manager
src/core/device/device.cc:87
next →1–100 of 5,531, ranked by callers