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

Method write

dnn/src/common/cv/mat.cpp:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136template <typename T>
137void Mat<T>::write(T* dst) const {
138 megdnn_assert(is_continuous());
139 cuda_check(cudaMemcpy(
140 dst, m_data.get(), sizeof(T) * this->total_nr_elem(),
141 cudaMemcpyDeviceToHost));
142}
143
144template class Mat<uchar>;
145template class Mat<float>;

Callers 15

_write_defMethod · 0.45
_write_midoutMethod · 0.45
process_fileFunction · 0.45
gen_version.pyFile · 0.45
formatMethod · 0.45
run_modelFunction · 0.45
dumpMethod · 0.45
_dump_ninja_fileFunction · 0.45
dumpMethod · 0.45
test_assert_equalFunction · 0.45
write_magicFunction · 0.45

Calls 2

total_nr_elemMethod · 0.95
getMethod · 0.45

Tested by 4

test_assert_equalFunction · 0.36
write_magicFunction · 0.36
write_headerFunction · 0.36
SaveArrayAsNumpyFunction · 0.36