MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / total_size_in_bytes

Method total_size_in_bytes

dnn/src/common/utils.cpp:188–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188size_t WorkspaceBundle::total_size_in_bytes() const {
189 //! return 0 if the WorkspaceBundle is empty
190 size_t size = std::accumulate(
191 m_aligned_sizes.begin(), m_aligned_sizes.end(), static_cast<size_t>(0));
192 return size ? size + m_align_in_bytes : size;
193}
194
195size_t megdnn::count_not_ones_in_shape(const TensorShape& shape) {
196 size_t res = 0u;

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

searchMethod · 0.64
run_matmul_mk_formatFunction · 0.64