InferFormatFuncRegister构造函数和析构函数。
数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
InferFormatFuncRegister(const std::string &operator_type, const InferFormatFunc &infer_format_func); InferFormatFuncRegister(const char_t *const operator_type, const InferFormatFunc &infer_format_func); ~InferFormatFuncRegister() = default;
InferFormatFuncRegister构造函数返回InferFormatFuncRegister类型的对象。
算子InferFormat函数注册接口,此接口被其他头文件引用,一般不用由算子开发者直接调用。