megenginelite-sys 1.8.2

A safe megenginelite wrapper in Rust
Documentation
/**
 * \file dnn/src/arm_common/conv_bias/quint8/direct_dotprod.h
 * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
 *
 * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */

#include "src/arm_common/conv_bias/opr_impl.h"
#if MGB_ENABLE_DOT
#include "src/fallback/conv_bias/common.h"

namespace megdnn {
namespace arm_common {
namespace conv_bias {

#define KERN(stride, i)                                                       \
    template <                                                                \
            bool first_ic, bool last_ic, bool fused_kern, BiasMode bias_mode, \
            typename Op>                                                      \
    void conv_direct_##stride##_##i##x##i##_quint8_dot(                       \
            const uint8_t* src, const uint8_t* filter, const int32_t* bias,   \
            int32_t* temp, uint8_t* dst, const size_t IH, const size_t IW,    \
            const size_t OH, const size_t OW, const uint8_t src_zp,           \
            const uint8_t filter_zp, const int32_t src_filter_zp, const Op& op);

KERN(stride1, 2)
KERN(stride1, 3)
KERN(stride1, 5)
KERN(stride1, 7)

KERN(stride2, 2)
KERN(stride2, 3)
KERN(stride2, 5)
KERN(stride2, 7)

#undef KERN

}  // namespace conv_bias
}  // namespace arm_common
}  // namespace megdnn
#endif
// vim: syntax=cpp.doxygen