mirror of https://github.com/alibaba/MNN.git
28 lines
578 B
C++
28 lines
578 B
C++
|
//
|
||
|
// CPUTopKV2.hpp
|
||
|
// MNN
|
||
|
//
|
||
|
// Created by MNN on 2018/08/28.
|
||
|
// Copyright © 2018, Alibaba Group Holding Limited
|
||
|
//
|
||
|
|
||
|
#ifndef CPUTOPKV2_HPP
|
||
|
#define CPUTOPKV2_HPP
|
||
|
|
||
|
#include "Execution.hpp"
|
||
|
#include "MNN_generated.h"
|
||
|
|
||
|
namespace MNN {
|
||
|
class CPUTopKV2 : public Execution {
|
||
|
public:
|
||
|
CPUTopKV2(Backend *b, const TopKV2 *TopKV2Param);
|
||
|
virtual ~CPUTopKV2() = default;
|
||
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
||
|
|
||
|
private:
|
||
|
const TopKV2 *mTopKV2Param;
|
||
|
};
|
||
|
} // namespace MNN
|
||
|
|
||
|
#endif // CPUTOPKV2_HPP
|