crobbi papasega commited on
Commit
295cc0c
1 Parent(s): c614dae

Update modelutil.py (#1)

Browse files

- Update modelutil.py (c9c13224e4b1d7f7de5f2133067515ea62d0020b)


Co-authored-by: papa wade <papasega@users.noreply.huggingface.co>

Files changed (1) hide show
  1. modelutil.py +3 -1
modelutil.py CHANGED
@@ -2,7 +2,9 @@ import tensorflow as tf
2
 
3
  def create_model():
4
 
5
- LAYERS = [tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
 
 
6
  tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
7
  tf.keras.layers.Dense(100, activation='relu', name="hiddenlayer2"),
8
  tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]
 
2
 
3
  def create_model():
4
 
5
+ LAYERS = [tf.keras.layers.Conv2D(32, (3, 3), activation='relu', input_shape=(28, 28, 1), name="convlayer1"),
6
+ tf.keras.layers.Conv2D(64, (3, 3), activation='relu', name="convlayer2"),
7
+ tf.keras.layers.Flatten(input_shape=[28,28], name="inputlayer"),
8
  tf.keras.layers.Dense(300, activation='relu', name="hiddenlayer1"),
9
  tf.keras.layers.Dense(100, activation='relu', name="hiddenlayer2"),
10
  tf.keras.layers.Dense(10, activation='softmax', name="outputlayer")]