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

Method exec

dnn/src/cambricon/convolution/forward/algo.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void ConvolutionForwardImpl::AlgoDefault::exec(const ExecArgs& args) const {
123 auto config = prepare_sub_opr(args);
124 auto bundle = get_workspace_bundle(config, args);
125 bundle.set(args.workspace.raw_ptr);
126 auto conv_workspace = bundle.get_workspace(1);
127 cnrt_check(cnrtMemsetAsync(
128 bundle.get(0), 0, bundle.get_size(0), cnrt_queue(args.opr->handle())));
129 config.second->exec(
130 args.tensor_src, args.tensor_filter, {bundle.get(0), config.first[0]},
131 {nullptr, config.first[1]}, args.tensor_dst, nullptr, conv_workspace);
132}
133
134// vim: syntax=cpp.doxygen

Callers

nothing calls this directly

Calls 8

cnrt_queueFunction · 0.85
prepare_sub_oprFunction · 0.70
get_workspace_bundleFunction · 0.70
setMethod · 0.45
get_workspaceMethod · 0.45
getMethod · 0.45
get_sizeMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected