Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
40
template <typename T>
41
auto 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
47
template <typename T>
48
auto to_tuple(
Callers
nothing calls this directly
Calls
3
cast
Function · 0.85
begin
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected