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

Function copy_plane_in_bytes

dnn/src/common/utils.h:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347bool is_nhwc_contig_wc(const TensorLayout& layout);
348
349static inline void copy_plane_in_bytes(
350 void* dst, const void* src, size_t height, size_t width, size_t stride_dst,
351 size_t stride_src) {
352 for (size_t h = 0; h < height; ++h) {
353 std::memcpy(
354 static_cast<unsigned char*>(dst) + h * stride_dst,
355 static_cast<const unsigned char*>(src) + h * stride_src, width);
356 }
357}
358
359megcoreDeviceHandle_t get_device_handle(Handle* handle);
360

Callers 9

repFunction · 0.85
stride2_int8x8x32_dotMethod · 0.85
repFunction · 0.85
stride1_int8x8x32_dotMethod · 0.85
repFunction · 0.85
stride2_quint8_dotMethod · 0.85
repFunction · 0.85
stride1_quint8_dotMethod · 0.85
do_conv_kern_strideMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected