mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
24 lines
446 B
C
24 lines
446 B
C
|
#ifndef LAYER_CONSTANTOFSHAPE_H
|
||
|
#define LAYER_CONSTANTOFSHAPE_H
|
||
|
|
||
|
#include "layer.h"
|
||
|
|
||
|
namespace mmlab {
|
||
|
|
||
|
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 mmlab
|
||
|
|
||
|
#endif // LAYER_CONSTANTOFSHAPE_H
|