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

Function to_list

imperative/python/src/helper.h:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename T>
41auto to_list(const T& x) {
42 using elem_t = range_value_t<T>;
43 std::vector<elem_t> ret(x.begin(), x.end());
44 return pybind11::cast(ret);
45}
46
47template <typename T>
48auto to_tuple(

Callers

nothing calls this directly

Calls 3

castFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected