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

Function tinfo_to_tid

imperative/src/impl/interpreter/interpreter_impl.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace {
23auto tinfo_to_tid(SmallVector<TensorInfo*> tinfo) {
24 SmallVector<uint64_t> tid;
25 for (auto* ptinfo : tinfo) {
26 tid.push_back(ptinfo->id);
27 }
28 return tid;
29};
30} // namespace
31
32namespace mgb {

Callers 2

dispatch_default_cpuMethod · 0.85
dispatch_kernelMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected