|
nndeploy C++ API
0.2.0
nndeploy C++ API
|
#include <op_where.h>
Additional Inherited Members | |
Protected Attributes inherited from nndeploy::op::Op | |
| bool | constructed_ = false |
| base::DeviceType | device_type_ |
| op的设备类型 More... | |
| uint64_t | flops_ = 0 |
| bool | initialized_ = false |
| std::vector< device::Tensor * > | inputs_ |
| op的输入tensor note: 当权重为tensor时,权重tensor也会在这里 eg: More... | |
| bool | is_changed_ = false |
| bool | is_debug_ = false |
| bool | is_external_stream_ = false |
| op的stream note: 当stream为外部传入时,is_external_stream_为true More... | |
| bool | is_inner_ = false |
| bool | is_inplace_ = false |
| bool | is_running_ = false |
| bool | is_time_profile_ = false |
| ir::OpDesc | op_desc_ |
| op的描述 包含op的类型、名称、输入名称、输出名称、参数 More... | |
| std::vector< device::Tensor * > | outputs_ |
| op的输出tensor More... | |
| base::ParallelType | parallel_type_ = base::kParallelTypeNone |
| base::PrecisionType | precision_type_ = base::kPrecisionTypeFp32 |
| op的精度类型 note: 精度类型与输入输出tensor的data_type的不同 More... | |
| device::Stream * | stream_ = nullptr |
| void * | workspace_ = nullptr |
| bool | workspace_is_external_ = false |
| op的workspace大小 note: op在运行时的workspace大小, 在preRun中确定 eg:例如Conv,当存在padding时,需要分配额外的内存,存放padding后的内存 More... | |
| uint64_t | workspace_size_ = 0 |
Definition at line 11 of file op_where.h.
|
inline |
Definition at line 13 of file op_where.h.
|
inlinevirtual |
Definition at line 14 of file op_where.h.
|
virtual |
|
virtual |
Implements nndeploy::op::Op.