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

Function get_workspace_bundle

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

Source from the content-addressed store, hash-verified

47}
48
49WorkspaceBundle get_workspace_bundle(
50 const std::pair<TensorLayoutArray, std::unique_ptr<ConvBiasForward>>&
51 subopr_config,
52 const ConvolutionForwardImpl::AlgoBase::SizeArgs& args) {
53 size_t bias_size = subopr_config.first[0].access_bytes();
54 size_t conv_work_size = subopr_config.second->get_workspace_in_bytes(
55 *args.layout_src, *args.layout_filter, subopr_config.first[0],
56 subopr_config.first[1], *args.layout_dst, nullptr);
57 return {nullptr, {bias_size, conv_work_size}};
58}
59
60} // namespace
61

Callers 15

execMethod · 0.70
execMethod · 0.50
execMethod · 0.50
exec_internalMethod · 0.50
exec_internalMethod · 0.50
execMethod · 0.50

Calls 2

access_bytesMethod · 0.80

Tested by

no test coverage detected