Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
majianjia committed Jul 23, 2019
1 parent ff0b2e5 commit e5e513d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ __pycache__
*.h5
*.obj
*.sconsign.dblite
.ipynb_checkpoints
.ipynb_checkpoints
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

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

Document version 0.2.1

[[Chinese Intro]](rt-thread_guide.md)

**Highlights**
Expand Down
3 changes: 2 additions & 1 deletion examples/auto_test/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ Debug
.ipynb_checkpoints
weights.h
result.csv
test_*
test_*
_cifar.py
6 changes: 6 additions & 0 deletions inc/nnom.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
#define q15_t int16_t
#define q31_t int32_t

/* version */
#define NNOM_MAJORVERSION 0L /**< major version number */
#define NNOM_SUBVERSION 2L /**< minor version number */
#define NNOM_REVISION 1L /**< revise version number */
#define NNOM_VERSION (NNOM_MAJORVERSION * 10000) + (NNOM_SUBVERSION * 100) + NNOM_REVISION)

typedef enum
{
NN_SUCCESS = 0, /**< No error */
Expand Down
3 changes: 2 additions & 1 deletion src/nnom.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@ nnom_status_t model_compile(nnom_model_t *m, nnom_layer_t *input, nnom_layer_t *
if (output == NULL)
m->tail = find_last(input);

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

Expand Down

0 comments on commit e5e513d

Please sign in to comment.