Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ size
Method
size
src/custom/impl/tensor.cpp:470–472 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
468
}
469
470
size_t Tensor::size(void) const {
471
return TensorImplRef(m_tensor).shape().total_nr_elems();
472
}
473
474
std::vector<ptrdiff_t> Tensor::stride(void) const {
475
std::vector<ptrdiff_t> ret(TensorImplRef(m_tensor).shape().ndim);
Callers
15
parse_typestring
Function · 0.45
parse_dict
Function · 0.45
write_tuple
Function · 0.45
parse_header
Function · 0.45
LoadArrayFromNumpy
Function · 0.45
parse_npy
Method · 0.45
basic_load_from_path
Function · 0.45
basic_load_from_path_with_loader
Function · 0.45
load_from_path_run_cuda
Function · 0.45
decrypt_model
Function · 0.45
generate_yolox_proposals
Function · 0.45
qsort_descent_inplace
Function · 0.45
Calls
2
total_nr_elems
Method · 0.45
shape
Method · 0.45
Tested by
15
TEST
Function · 0.36
parse_typestring
Function · 0.36
parse_dict
Function · 0.36
write_tuple
Function · 0.36
parse_header
Function · 0.36
LoadArrayFromNumpy
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
test_io_no_copy_ax
Function · 0.36
get_input_data
Function · 0.36
mgb_lar
Function · 0.36