nndeploy C++ API  0.2.0
nndeploy C++ API
op_constant_of_shape.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2025
3  * All rights reserved.
4  */
5 #ifndef _NNDEPLOY_OP_OP_CONSTANT_OF_SHAPE_H_
6 #define _NNDEPLOY_OP_OP_CONSTANT_OF_SHAPE_H_
7 
8 #include "nndeploy/ir/ir.h"
9 #include "nndeploy/op/op.h"
10 
11 namespace nndeploy {
12 namespace op {
13 
14 class OpConstantOfShape : public Op {
15  public:
17  virtual ~OpConstantOfShape() {}
18 
21  virtual base::Status run();
22 };
23 
26  std::shared_ptr<ir::ConstantOfShapeParam> param,
27  device::Tensor* output);
28 
29 } // namespace op
30 } // namespace nndeploy
31 
32 #endif // _NNDEPLOY_OP_OP_CONSTANT_OF_SHAPE_H_
33 
virtual base::Status inferDataType()
类型推理
virtual base::Status run()
virtual base::Status inferShape()
形状推理
Op的基类
Definition: op.h:42
#define NNDEPLOY_CC_API
api
Definition: macro.h:29
base::Status constantOfShape(device::Tensor *shape, std::shared_ptr< ir::ConstantOfShapeParam > param, device::Tensor *output)
base::Status shape(device::Tensor *input, std::shared_ptr< ir::ShapeParam > param, device::Tensor *output)