aboutsummaryrefslogtreecommitdiff
path: root/src/TosaSerialize.cpp
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2023-09-28 18:45:51 +0000
committerTai Ly <tai.ly@arm.com>2023-10-11 20:05:19 +0000
commita7d41ccfc92f0a00ee6b4e96f217eb8f27956b00 (patch)
treee8c5df599c23e0811921a1c1c86631fca6f8a6e8 /src/TosaSerialize.cpp
parent1d2fa67f58be952cccdb788612ce108eaf77e35f (diff)
downloadtosa_mlir_translator-a7d41ccfc92f0a00ee6b4e96f217eb8f27956b00.tar.gz
Adjust to revised Stateful ops
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I86c2d39ff9e3f88dd25d5044f1d2d679e163cc1a
Diffstat (limited to 'src/TosaSerialize.cpp')
-rw-r--r--src/TosaSerialize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TosaSerialize.cpp b/src/TosaSerialize.cpp
index b894383..45a1b37 100644
--- a/src/TosaSerialize.cpp
+++ b/src/TosaSerialize.cpp
@@ -307,7 +307,7 @@ std::string TosaSerializationOperatorBuilder::GetVariableTensorName(
mlir::Operation *op) const {
mlir::Attribute variable_op_name_attr = op->getAttr("name");
std::string variable_tensor_mlir_name =
- op->getAttr("name").cast<mlir::FlatSymbolRefAttr>().getValue().str();
+ op->getAttr("name").cast<mlir::StringAttr>().getValue().str();
if (variable_tensor_flatbuffer_name_map.find(variable_tensor_mlir_name) ==
variable_tensor_flatbuffer_name_map.end()) {