diff options
author | Jerry Ge <jerry.ge@arm.com> | 2024-06-14 20:09:53 +0000 |
---|---|---|
committer | Jerry Ge <jerry.ge@arm.com> | 2024-06-18 21:15:16 +0000 |
commit | 895822576f97ca9470709378e7ff122ccbea5d00 (patch) | |
tree | 373e54315f2bf2e27e78cb02378634f2321a3c3b /include/tosa_serialization_handler.h | |
parent | ca6fa5fbc4af9f486d87d36c7baeff924edd0534 (diff) | |
download | serialization_lib-895822576f97ca9470709378e7ff122ccbea5d00.tar.gz |
Enable serialization_lib to load tosa schema directly from a header
- Implement convert_schema_to_header.py to convert tosa schema file to
tosa_schema.h
- Enable loading tosa schema directly from a string from the header file
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Iafcccf2a03fd8968acd2d12c0081e85c10a91ef4
Diffstat (limited to 'include/tosa_serialization_handler.h')
-rw-r--r-- | include/tosa_serialization_handler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tosa_serialization_handler.h b/include/tosa_serialization_handler.h index c09a47d..5b3882e 100644 --- a/include/tosa_serialization_handler.h +++ b/include/tosa_serialization_handler.h @@ -410,6 +410,7 @@ public: tosa_err_t SaveFileJson(const char* filename); tosa_err_t SaveFileTosaFlatbuffer(const char* filename); tosa_err_t LoadFileSchema(const char* schema_filename); + tosa_err_t LoadTosaSchema(); // data format conversion. little-endian. static tosa_err_t ConvertBF16toU8(const std::vector<bf16>& in, std::vector<uint8_t>& out); |