-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_decl.mk
44 lines (34 loc) · 1.1 KB
/
model_decl.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (C) 2017 GreenWaves Technologies
# All rights reserved.
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
GEN_PATH = $(TILER_GENERATOR_PATH)/CNN
ifndef MODEL_SUFFIX
MODEL_SUFFIX=
endif
ifndef MODEL_PREFIX
MODEL_PREFIX=GapFlow
endif
MODEL_PYTHON=python
# Increase this to improve accuracy
MODEL_BUILD = BUILD_MODEL$(MODEL_SUFFIX)
MODEL_H5 = $(MODEL_TRAIN_BUILD)/$(MODEL_PREFIX).h5
MODEL_NAME = $(MODEL_PREFIX).tflite
MODEL_TFLITE = model/$(MODEL_NAME)
TENSORS_DIR = $(MODEL_BUILD)/tensors
MODEL_TENSORS = $(MODEL_BUILD)/$(MODEL_PREFIX)_L3_Flash_Const.dat
MODEL_HEADER = $(MODEL_PREFIX)Info.h
MODEL_STATE = $(MODEL_BUILD)/$(MODEL_PREFIX).json
MODEL_SRC = $(MODEL_PREFIX)Model.c
MODEL_GEN = $(MODEL_BUILD)/$(MODEL_PREFIX)Kernels
MODEL_GEN_C = $(addsuffix .c, $(MODEL_GEN))
MODEL_GEN_CLEAN = $(MODEL_GEN_C) $(addsuffix .h, $(MODEL_GEN))
MODEL_GEN_EXE = ./GenTile
ifndef NNTOOL_SCRIPT
NNTOOL_SCRIPT=model/nntool_script
endif
IMAGES = images
RM=rm -f
NNTOOL=nntool
MODEL_SRCS += $(MODEL_GEN_C)
include $(RULES_DIR)/at_common_decl.mk