MCPcopy 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

forwardMethod · 0.95
backwardMethod · 0.95
backwardMethod · 0.45
ctensor2numpyFunction · 0.45
sizeMethod · 0.45
copy_from_numpyFunction · 0.45
test_conv2dMethod · 0.45
_ctensor_eq_ndarrayFunction · 0.45
print_tFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_conv2dMethod · 0.36
_ctensor_eq_ndarrayFunction · 0.36
print_tFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36