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.

     

     

    MNIST EXAMPLE

    Spresense
    2
    2
    907
    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.
    • B
      Bhalaji Kharthik last edited by

      Can I get the convolutional neural network structure of the model that is being used in the MNIST example in the Spresense SDK?

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Bhalaji Kharthik last edited by

        Hey, @Bhalaji-Kharthik

        In the code for that example we can see the following structure for the model:

        model = tf.keras.Sequential([
            tf.keras.layers.Conv2D(16, kernel_size=(7, 7), strides=(1, 1), activation='relu', input_shape=(28, 28, 1), padding="valid"),
            tf.keras.layers.MaxPooling2D(pool_size=(2, 2), strides=(2, 2), padding='valid'),
            tf.keras.layers.Conv2D(30, kernel_size=(3, 3), strides=(1, 1), activation='tanh', padding='valid'),
            tf.keras.layers.MaxPooling2D(pool_size=(2, 2), strides=(2, 2), padding='valid'),
            tf.keras.layers.Flatten(),
            tf.keras.layers.Dense(150, activation='relu'),
            tf.keras.layers.Dense(10, activation='softmax'),
        ])
        
        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal