Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Delete templates/tflite.cc.template
Browse files- templates/tflite.cc.template +0 -35
templates/tflite.cc.template
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
{{common_template_header}}
|
| 2 |
-
|
| 3 |
-
#include <cstddef>
|
| 4 |
-
#include <cstdint>
|
| 5 |
-
|
| 6 |
-
#include "inference_attributes.hpp"
|
| 7 |
-
#include "tensorflow/lite/micro/micro_mutable_op_resolver.h"
|
| 8 |
-
|
| 9 |
-
{% for header in additional_headers %}
|
| 10 |
-
#include "{{header}}"
|
| 11 |
-
{% endfor %}
|
| 12 |
-
|
| 13 |
-
namespace {{namespace}} {
|
| 14 |
-
|
| 15 |
-
{% for expression in expressions %}
|
| 16 |
-
{{expression}};
|
| 17 |
-
{% endfor %}
|
| 18 |
-
|
| 19 |
-
static const uint8_t {{tflite_attribute}} nn_model[{{model_length}}] =
|
| 20 |
-
{% for model_hex_line in model_data %}
|
| 21 |
-
{{model_hex_line}}
|
| 22 |
-
{% endfor %}
|
| 23 |
-
|
| 24 |
-
const uint8_t * get_model_pointer(void)
|
| 25 |
-
{
|
| 26 |
-
return nn_model;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
size_t get_model_len(void)
|
| 30 |
-
{
|
| 31 |
-
return sizeof(nn_model);
|
| 32 |
-
}
|
| 33 |
-
|
| 34 |
-
} /* namespace {{namespace}} */
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|