blob: 955f01d96e92aa17acbb19d5b2c463079f7151ba [file] [log] [blame]
alexander3c798932021-03-26 21:42:19 +00001{#
Richard Burtonf32a86a2022-11-15 11:46:11 +00002 SPDX-FileCopyrightText: Copyright 2021 Arm Limited and/or its affiliates <open-source-office@arm.com>
alexander3c798932021-03-26 21:42:19 +00003 SPDX-License-Identifier: Apache-2.0
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16#}
17{{common_template_header}}
18
Kshitij Sisodiaaa4bcb12022-05-06 09:13:03 +010019#include "BufAttributes.hpp"
20
21#include <cstddef>
22#include <cstdint>
23
alexander3c798932021-03-26 21:42:19 +000024{% for header in additional_headers %}
25#include "{{header}}"
26{% endfor %}
27
28{% for namespace in namespaces %}
29namespace {{namespace}} {
30{% endfor %}
31
32{% for expression in expressions %}
33{{expression}};
34{% endfor %}
35
36static const uint8_t nn_model[] MODEL_TFLITE_ATTRIBUTE =
37{% for model_hex_line in model_data %}
38{{model_hex_line}}
39{% endfor %}
40
41const uint8_t * GetModelPointer()
42{
43 return nn_model;
44}
45
46size_t GetModelLen()
47{
48 return sizeof(nn_model);
49}
50
51{% for namespace in namespaces %}
52} /* namespace {{namespace}} */
53{% endfor %}