aboutsummaryrefslogtreecommitdiff
path: root/src/TosaDeserialize.cpp
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-11-09 18:37:53 +0000
committerJerry Ge <jerry.ge@arm.com>2023-11-15 00:09:24 +0000
commit546e9990065804f6304a216b42468bf44c8c1036 (patch)
tree7ff641ff105dd524f4eeddae796b4c5c2702ad13 /src/TosaDeserialize.cpp
parentd73f3d7de24048f491a9e02ca50be0f069ef10b1 (diff)
downloadtosa_mlir_translator-546e9990065804f6304a216b42468bf44c8c1036.tar.gz
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 <jerry.ge@arm.com> Change-Id: Ib9d032ed9c1a25e3740d9fc8e854369a71736329
Diffstat (limited to 'src/TosaDeserialize.cpp')
-rw-r--r--src/TosaDeserialize.cpp6
1 files changed, 3 insertions, 3 deletions
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<Op_CUSTOM>(TosaSerializationOperator *op) const {
TosaCustomAttribute *attr =
static_cast<TosaCustomAttribute *>(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<Op_CUSTOM>(TosaSerializationOperator *op) const {
auto impl = op_builder->getStringAttr(impl_str);
mlir::Operation *mlir_op = op_builder->create<mlir::tosa::CustomOp>(
- 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::Value>({mlir_op->getResult(0)});
}