Sony's Developer World forum

    • Home
    • Forum guidelines

    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?

    Spresense
    2
    3
    1643
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jayaprasad 1 1 1 1 1 1 1 1 1 1 last edited by

      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?

      1 Reply Last reply Reply Quote
      • K
        KamilTomaszewski DeveloperWorld last edited by

        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

        J 1 Reply Last reply Reply Quote
        • J
          jayaprasad 1 1 1 1 1 1 1 1 1 1 @KamilTomaszewski last edited by

          @KamilTomaszewski Thanks you so much !!!

          Let me try these.

          Best Regards
          Jayaprasad T J

          1 Reply Last reply Reply Quote
          • Referenced by  C CamilaSouza 
          • First post
            Last post
          Developer World
          Copyright © 2021 Sony Group Corporation. All rights reserved.
          • Contact us
          • Legal