跳到主要内容

构造函数和析构函数

函数功能​

Operator构造函数和析构函数。

函数原型​

数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。

Operator()
explicit Operator(const std::string &type);
explicit Operator(const char_t *type);
Operator(const std::string &name, const std::string &type);
Operator(const AscendString &name, const AscendString &type);
Operator(const char_t *name, const char_t *type);
virtual ~Operator() = default;

参数说明​

参数名输入/输出描述
type输入算子类型。
name输入算子名称。

返回值​

Operator构造函数返回Operator类型的对象。

异常处理​

无

约束说明​

无