Skip to content

Commit e5e513d

Browse files
committed
Add version
1 parent ff0b2e5 commit e5e513d

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ __pycache__
1010
*.h5
1111
*.obj
1212
*.sconsign.dblite
13-
.ipynb_checkpoints
13+
.ipynb_checkpoints

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
NNoM is a high-level inference Neural Network library specifically for microcontrollers.
77

8+
Document version 0.2.1
9+
810
[[Chinese Intro]](rt-thread_guide.md)
911

1012
**Highlights**

examples/auto_test/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Debug
1212
.ipynb_checkpoints
1313
weights.h
1414
result.csv
15-
test_*
15+
test_*
16+
_cifar.py

inc/nnom.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#define q15_t int16_t
2626
#define q31_t int32_t
2727

28+
/* version */
29+
#define NNOM_MAJORVERSION 0L /**< major version number */
30+
#define NNOM_SUBVERSION 2L /**< minor version number */
31+
#define NNOM_REVISION 1L /**< revise version number */
32+
#define NNOM_VERSION (NNOM_MAJORVERSION * 10000) + (NNOM_SUBVERSION * 100) + NNOM_REVISION)
33+
2834
typedef enum
2935
{
3036
NN_SUCCESS = 0, /**< No error */

src/nnom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,8 @@ nnom_status_t model_compile(nnom_model_t *m, nnom_layer_t *input, nnom_layer_t *
868868
if (output == NULL)
869869
m->tail = find_last(input);
870870

871-
NNOM_LOG("\nStart compiling model...\n");
871+
NNOM_LOG("\nNNoM version %d.%d.%d\n", NNOM_MAJORVERSION, NNOM_SUBVERSION, NNOM_REVISION);
872+
NNOM_LOG("Start compiling model...\n");
872873
NNOM_LOG("Layer(#) Activation output shape ops(MAC) mem(in, out, buf) mem blk lifetime\n");
873874
NNOM_LOG("-------------------------------------------------------------------------------------------------\n");
874875

0 commit comments

Comments
 (0)