diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-08 13:25:45 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-03-10 15:20:57 +0100 |
commit | 35de9e63d9c2fe0a557637ac104d7d73382d2d4a (patch) | |
tree | 41fa348f46f7f76b00625ad3b9768c1ddae5c83b /driver_library/include | |
parent | 118b05990af26026a1ac2b6d5dfae32ea342a7f4 (diff) | |
download | ethos-u-linux-driver-stack-35de9e63d9c2fe0a557637ac104d7d73382d2d4a.tar.gz |
Firmware resident model
Support referencing a network model by index that has been built into
the firmware binary.
Change-Id: Idd5294376ea82503dfeafe1203dcc0694d296dfe
Diffstat (limited to 'driver_library/include')
-rw-r--r-- | driver_library/include/ethosu.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/driver_library/include/ethosu.hpp b/driver_library/include/ethosu.hpp index 98e6969..0738aa2 100644 --- a/driver_library/include/ethosu.hpp +++ b/driver_library/include/ethosu.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021 Arm Limited. All rights reserved. + * Copyright (c) 2020-2022 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -161,6 +161,7 @@ private: class Network { public: Network(const Device &device, std::shared_ptr<Buffer> &buffer); + Network(const Device &device, const std::string &model, const unsigned index); virtual ~Network(); int ioctl(unsigned long cmd, void *data = nullptr); @@ -171,6 +172,8 @@ public: size_t getOfmSize() const; private: + void parseModel(const char *data); + int fd; std::shared_ptr<Buffer> buffer; std::vector<size_t> ifmDims; |