Skip to content

Commit

Permalink
rollback attribute changes which is not compatible with TF 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
nikelite committed Nov 27, 2024
1 parent f2442ea commit 99c5f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfx/examples/mnist/mnist_utils_native_keras_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def build_keras_model() -> tf.keras.Model:
model = tf.keras.Sequential()
model.add(
tf.keras.layers.InputLayer(
shape=(784,), name=transformed_name(IMAGE_KEY)))
input_shape=(784,), name=transformed_name(IMAGE_KEY)))
model.add(tf.keras.layers.Dense(64, activation='relu'))
model.add(tf.keras.layers.Dropout(0.2))
model.add(tf.keras.layers.Dense(64, activation='relu'))
Expand Down

0 comments on commit 99c5f2a

Please sign in to comment.