fork download
  1. inputs = Input(shape=(128,), name='input_layer')
  2. x = Dense(64, activation='sigmoid')(inputs)
  3. x = BatchNormalization()(x)
  4. x = Dense(32, activation='sigmoid')(x)
  5. predictions = Dense(10, activation='softmax', name='output_layer')(x)
  6. model = Model(inputs=inputs, outputs=predictions)
Runtime error #stdin #stdout #stderr 0.02s 28520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
NameError: name 'Input' is not defined