Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/singa
/ Size
Method
Size
include/singa/core/tensor.h:137–137 ·
view source on GitHub ↗
Return number of total elements
Source
from the content-addressed store, hash-verified
135
136
/// Return number of total elements
137
size_t Size() const { return size(); }
138
139
size_t size() const {
140
if (block_ == nullptr) return 0u;
Callers
15
forward
Method · 0.95
backward
Method · 0.95
backward
Method · 0.45
ctensor2numpy
Function · 0.45
size
Method · 0.45
copy_from_numpy
Function · 0.45
test_conv2d
Method · 0.45
_ctensor_eq_ndarray
Function · 0.45
print_t
Function · 0.45
TEST
Function · 0.45
TEST_F
Function · 0.45
TEST
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_conv2d
Method · 0.36
_ctensor_eq_ndarray
Function · 0.36
print_t
Function · 0.36
TEST
Function · 0.36
TEST_F
Function · 0.36
TEST
Function · 0.36
TEST_F
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36