Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ Tensor
Method
Tensor
src/core/tensor/tensor.cc:43–46 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
41
}
42
43
Tensor::Tensor() {
44
device_ = defaultDevice;
45
stride_ = {1};
46
}
47
48
// non-strided constructors
49
Tensor::Tensor(const Shape &shape, DataType dtype)
Callers
15
backward_and_sparse_update
Method · 0.80
handle_odd_pad_fwd
Function · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
backward
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
backward
Method · 0.80
backward
Method · 0.80
backward
Method · 0.80
Calls
5
Product
Function · 0.85
SizeOf
Function · 0.85
NewBlock
Method · 0.80
IncRefCount
Method · 0.80
block
Method · 0.45
Tested by
15
test_const_decay_scheduler
Method · 0.64
test_sgd_const_lr
Method · 0.64
test_RMSProp_const_lr
Method · 0.64
test_AdaGrad_const_lr
Method · 0.64
test_Adam_const_lr
Method · 0.64
test_sgd_const_lr_momentum
Method · 0.64
test_sgd_const_lr_momentum_weight_decay
Method · 0.64
test_sgd_const_lr_momentum_nesterov
Method · 0.64
_conv2d_helper
Method · 0.64
_avg_pool_helper
Method · 0.64
_max_pool_helper
Method · 0.64
_linear_helper
Method · 0.64