From 546e9990065804f6304a216b42468bf44c8c1036 Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Thu, 9 Nov 2023 18:37:53 +0000 Subject: Update CustomOp's attribute name - CustomOp's two attribute names have been changed to - domain to domain_name - operator to operator_name Signed-off-by: Jerry Ge Change-Id: Ib9d032ed9c1a25e3740d9fc8e854369a71736329 --- src/TosaDeserialize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/TosaDeserialize.cpp') diff --git a/src/TosaDeserialize.cpp b/src/TosaDeserialize.cpp index 9649644..0fb02eb 100644 --- a/src/TosaDeserialize.cpp +++ b/src/TosaDeserialize.cpp @@ -1255,8 +1255,8 @@ TosaMlirOperatorBuilder::build(TosaSerializationOperator *op) const { TosaCustomAttribute *attr = static_cast(op->GetAttribute()); - auto identifier = op_builder->getStringAttr(attr->identifier()); - auto config = op_builder->getStringAttr(attr->config()); + auto operator_name = op_builder->getStringAttr(attr->operator_name()); + auto domain_name = op_builder->getStringAttr(attr->domain_name()); std::string impl_str; impl_str.resize(attr->implementation_attrs().size() + 1); int idx = 0; @@ -1266,7 +1266,7 @@ TosaMlirOperatorBuilder::build(TosaSerializationOperator *op) const { auto impl = op_builder->getStringAttr(impl_str); mlir::Operation *mlir_op = op_builder->create( - loc, output_type, identifier, config, impl, input_val); + loc, output_type, operator_name, domain_name, impl, input_val); block->push_back(mlir_op); return std::vector({mlir_op->getResult(0)}); } -- cgit v1.2.1