aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2023-09-21 19:33:12 +0000
committerTai Ly <tai.ly@arm.com>2023-09-21 19:33:12 +0000
commit5917fc7a9392da8fd1e8c68b2d00b89709a31584 (patch)
tree7ded0dd5d27b9a5ee96db52affa9266c632cd626 /src
parentd0520b9b3a0eaf9dadc6cdb57ed42906e577d32e (diff)
downloadserialization_lib-5917fc7a9392da8fd1e8c68b2d00b89709a31584.tar.gz
Fix deserialization of variable_name
Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I6b3984fb3834d4ea82b38c54e30b0a59b23cef45
Diffstat (limited to 'src')
-rw-r--r--src/tosa_serialization_handler.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/tosa_serialization_handler.cpp b/src/tosa_serialization_handler.cpp
index f96ff60..015dda4 100644
--- a/src/tosa_serialization_handler.cpp
+++ b/src/tosa_serialization_handler.cpp
@@ -533,15 +533,16 @@ tosa_err_t TosaSerializationHandler::Deserialize(const uint8_t* buf)
{
auto curr_tensor = fb_tosa_tensors->Get(j);
- auto tensor_name = curr_tensor->name();
- auto tensor_shape = curr_tensor->shape();
- auto tensor_type = curr_tensor->type();
- auto tensor_variable = curr_tensor->variable();
- auto tensor_data = curr_tensor->data();
- auto tensor_is_unranked = curr_tensor->is_unranked();
+ auto tensor_name = curr_tensor->name();
+ auto tensor_shape = curr_tensor->shape();
+ auto tensor_type = curr_tensor->type();
+ auto tensor_variable = curr_tensor->variable();
+ auto tensor_data = curr_tensor->data();
+ auto tensor_is_unranked = curr_tensor->is_unranked();
+ auto tensor_variable_name = curr_tensor->variable_name();
new_tensor = new TosaSerializationTensor(tensor_name, tensor_shape, tensor_type, tensor_data,
- tensor_variable, tensor_is_unranked);
+ tensor_variable, tensor_is_unranked, tensor_variable_name);
if (new_tensor)
{
block_tensors_container.push_back(new_tensor);