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

Method read

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

Source from the content-addressed store, hash-verified

127
128template <typename T>
129void Mat<T>::read(const T* src) {
130 megdnn_assert(is_continuous());
131 cuda_check(cudaMemcpy(
132 m_data.get(), src, sizeof(T) * this->total_nr_elem(),
133 cudaMemcpyHostToDevice));
134}
135
136template <typename T>
137void Mat<T>::write(T* dst) const {

Callers 15

_write_midoutMethod · 0.45
mainFunction · 0.45
process_fileFunction · 0.45
read_magicFunction · 0.45
read_headerFunction · 0.45
LoadArrayFromNumpyFunction · 0.45
mainFunction · 0.45
read_magicFunction · 0.45
read_headerFunction · 0.45
LoadArrayFromNumpyFunction · 0.45
read_magicFunction · 0.45

Calls 2

total_nr_elemMethod · 0.95
getMethod · 0.45

Tested by 3

read_magicFunction · 0.36
read_headerFunction · 0.36
LoadArrayFromNumpyFunction · 0.36