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

Method get_algorithm_heuristic

dnn/src/naive/pooling/opr_impl.cpp:588–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588Algorithm* PoolingForwardImpl::get_algorithm_heuristic(
589 const TensorLayout& /*src*/, const TensorLayout& /*dst*/,
590 size_t /*workspace_limit_in_bytes*/, const AlgoAttribute& positive_attr,
591 const AlgoAttribute& negative_attr) {
592 auto algo = static_cast<HandleImpl*>(handle())->default_pooling_fwd_algo();
593 algo->check_attribute(positive_attr, negative_attr);
594 return algo;
595}
596
597Algorithm* PoolingBackwardImpl::get_algorithm_from_desc(const AlgorithmDesc& desc) {
598 Algorithm* ret = static_cast<HandleImpl*>(handle())->default_pooling_bwd_algo();

Callers

nothing calls this directly

Calls 3

check_attributeMethod · 0.80

Tested by

no test coverage detected