mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
25 lines
467 B
C
25 lines
467 B
C
|
#ifndef LAYER_TOPK_H
|
||
|
#define LAYER_TOPK_H
|
||
|
|
||
|
#include "layer.h"
|
||
|
|
||
|
namespace mmlab {
|
||
|
|
||
|
class TopK : public ncnn::Layer {
|
||
|
public:
|
||
|
TopK();
|
||
|
virtual int load_param(const ncnn::ParamDict& pd);
|
||
|
virtual int forward(const std::vector<ncnn::Mat>& bottom_blobs,
|
||
|
std::vector<ncnn::Mat>& top_blobs,
|
||
|
const ncnn::Option& opt) const;
|
||
|
|
||
|
public:
|
||
|
int axis;
|
||
|
int largest;
|
||
|
int sorted;
|
||
|
};
|
||
|
|
||
|
} // namespace mmlab
|
||
|
|
||
|
#endif // LAYER_TOPK_H
|