diff options
author | Tai Ly <tai.ly@arm.com> | 2023-09-21 19:33:12 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-11-28 14:43:40 -0800 |
commit | 38887b919ac3152e6e2735c68b915cff352df3bf (patch) | |
tree | 38c53455404062825574c29b30e14cdb0912db6a | |
parent | 254890c82f7ce3bc3d73e12b68b119e9c8747eb6 (diff) | |
download | serialization_lib-38887b919ac3152e6e2735c68b915cff352df3bf.tar.gz |
Fix deserialization of variable_name
Signed-off-by: Tai Ly <tai.ly@arm.com>
Change-Id: I6b3984fb3834d4ea82b38c54e30b0a59b23cef45
-rw-r--r-- | src/tosa_serialization_handler.cpp | 15 |
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); |