diff options
author | Tai Ly <tai.ly@arm.com> | 2023-09-28 18:45:51 +0000 |
---|---|---|
committer | Tai Ly <tai.ly@arm.com> | 2023-10-11 20:05:19 +0000 |
commit | a7d41ccfc92f0a00ee6b4e96f217eb8f27956b00 (patch) | |
tree | e8c5df599c23e0811921a1c1c86631fca6f8a6e8 /src/TosaSerialize.cpp | |
parent | 1d2fa67f58be952cccdb788612ce108eaf77e35f (diff) | |
download | tosa_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.cpp | 2 |
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()) { |