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

Method get_impl

src/opr/impl/internal/megdnn_opr_wrapper.cpp:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187MGB_TYPEINFO_OBJ_IMPL(WorkspaceLimitGetter::Impl);
188
189WorkspaceLimitGetter::Impl* WorkspaceLimitGetter::get_impl(ComputingGraph* graph) {
190 auto container = graph->options().user_data.get_user_data<Impl>();
191 mgb_assert(container.second == 1);
192 return container.first[0];
193}
194
195size_t WorkspaceLimitGetter::get_workspace_limit(
196 ComputingGraph* graph, CompNode cn, size_t old_limit) {

Callers 4

compile_and_runFunction · 0.45
write_to_fileMethod · 0.45
evalMethod · 0.45

Calls

no outgoing calls

Tested by 1

compile_and_runFunction · 0.36