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
24 lines
452 B
C++
Executable File
24 lines
452 B
C++
Executable File
#ifndef LAYER_CONSTANTOFSHAPE_H
|
|
#define LAYER_CONSTANTOFSHAPE_H
|
|
|
|
#include "layer.h"
|
|
|
|
namespace mmdeploy {
|
|
|
|
class ConstantOfShape : public ncnn::Layer {
|
|
public:
|
|
ConstantOfShape();
|
|
|
|
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:
|
|
float val;
|
|
};
|
|
|
|
} // namespace mmdeploy
|
|
|
|
#endif // LAYER_CONSTANTOFSHAPE_H
|