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

Function rep

dnn/src/fallback/resize/opr_impl.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 int osize) {
32 std::vector<std::tuple<float, int, float, int>> table;
33 rep(i, osize) {
34 table.push_back(get_nearest_linear_coord(imode, scale, isize, i));
35 }
36 return table;
37 };
38

Callers

nothing calls this directly

Calls 2

get_nearest_linear_coordFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected