Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static memory interface, NNOM_TRUNCATE, versions and others #107

Merged
merged 8 commits into from
Nov 28, 2020

Conversation

majianjia
Copy link
Owner

  • Add a new static memory buffer interface. By using this interface, NNoM no longer need dynamic memory allocation from libc
  • change default NNOM_TRUNCATE setting to avoid the ROUND issue for 16bit ops. RNN layer (16bit ops) not perform correctly with round (NNOM_TUNCATE undefined) #104, for use with CMSIS-NN, please enable global macro NN_TRUNCATE to avoid the same issue in CMSIS-NN.
  • Move script/lib version to 0.4.3
  • Fix memory alignment for 64bit system.

- Show backend in compiling info
-  Add reminder for disabling log
CMSIS NN default to use floor, same as our quantisation script. 
#100
Change python setting to meet 512 points FFT in MCU
update examples naming
- The local backend seems has some issue with NNOM_ROUND()
ARM-software/CMSIS_5#1047
Currently, it is still a global memory. All model istances (if multiple model is used) will share the memory pool.

- new macro `NNOM_USING_STATIC_MEMORY` in `nnom_port.h` to control memory type.
- new api `nnom_set_static_buf()` to be call before any model initialization.

The memory will be use in both layer instances and layer buffer.
@majianjia majianjia merged commit d8751ad into master Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant