Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
How to check the memory utilization for loading tflite model on Spresense board?
-
How can I check the memory consumed for loading a .tflite model on the run time on the Spresense board?
For example, I'd like to verify the memory utilization of a .tflite model file of 3 MB size. What could be the approximate memory usage for this? Also what are the factors affecting the memory usage while run time loading?
-
HI @jayaprasad_tj ,
To determine the amount of memory needed for your model, you need two things. First, you need to be able to load the entire model into the Spresense RAM.
Second, you will need to allocate memory for TensorFlow Runtime: https://www.tensorflow.org/lite/microcontrollers/get_started_low_level#7_allocate_memory The size required will depend on the model you are using, and may need to be determined by experimentation.
Best Regards,
Kamil Tomaszewski -
-