Created
October 30, 2022 14:06
-
-
Save sayakpaul/025741a80db123bd42453543fa7e3ea3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from tensorflow.keras import layers | |
model = tf.keras.Sequential([ | |
layers.Conv2D(32, kernel_size=(3, 3),activation='relu', | |
layers.MaxPool2D((2, 2)), | |
layers.Conv2D(64,kernel_size=(3, 3), activation='relu'), | |
layers.MaxPool2D((2, 2)), | |
layers.Dropout(0.2), | |
layers.GlobalAveragePooling2D(), | |
layers.Dense(128, activation='relu') | |
layers.Dense(10, activation = "softmax") | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment