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

Method get

dnn/src/naive/remap/opr_impl.cpp:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 param::Remap::BorderMode bordertype>
38struct GetSrcData {
39 static inline ctype get(
40 const ctype* src, int height, int width, int channel, int h, int w, int c,
41 float) {
42 height = megcv::border_interpolate<bordertype>(height, h);
43 width = megcv::border_interpolate<bordertype>(width, w);
44 return src[get_offset<format>(height, width, channel, h, w, c)];
45 }
46 static inline int get_index(
47 int height, int width, int channel, int h, int w, int c) {
48 height = megcv::border_interpolate<bordertype>(height, h);

Callers 3

execMethod · 0.45
execMethod · 0.45
bn_backward_execFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected