mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
* Update custom ops namespace * rename register, rename generated library name * rename domain to mmcv
27 lines
494 B
C++
Executable File
27 lines
494 B
C++
Executable File
#ifndef LAYER_TENSORSLICE_H
|
|
#define LAYER_TENSORSLICE_H
|
|
|
|
#include "layer.h"
|
|
|
|
namespace mmdeploy {
|
|
|
|
class TensorSlice : public ncnn::Layer {
|
|
public:
|
|
TensorSlice();
|
|
|
|
virtual int load_param(const ncnn::ParamDict& pd);
|
|
|
|
virtual int forward(const ncnn::Mat& bottom_blob, ncnn::Mat& top_blob,
|
|
const ncnn::Option& opt) const;
|
|
|
|
public:
|
|
ncnn::Mat starts;
|
|
ncnn::Mat ends;
|
|
ncnn::Mat axes;
|
|
ncnn::Mat steps;
|
|
};
|
|
|
|
} // namespace mmdeploy
|
|
|
|
#endif // LAYER_TENSORSLICE_H
|