Sephfox commited on
Commit
57786e3
1 Parent(s): 0dad55b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,8 +23,10 @@ class Net(keras.Model):
23
 
24
  def build(self, input_shape):
25
  self.fc1.build(input_shape)
26
- self.fc2.build(self.fc1.output_shape)
27
- self.fc3.build(self.fc2.output_shape)
 
 
28
  self.built = True
29
 
30
  def call(self, x):
 
23
 
24
  def build(self, input_shape):
25
  self.fc1.build(input_shape)
26
+ output_shape = self.fc1.compute_output_shape(input_shape)
27
+ self.fc2.build(output_shape)
28
+ output_shape = self.fc2.compute_output_shape(output_shape)
29
+ self.fc3.build(output_shape)
30
  self.built = True
31
 
32
  def call(self, x):