Skip to content

Commit

Permalink
Fix for TF (2.13) cnn histology workspace 'Adam' object has no attrib…
Browse files Browse the repository at this point in the history
…ute 'weights' issue (#1194)

Signed-off-by: yes <[email protected]>
  • Loading branch information
tanwarsh authored Dec 5, 2024
1 parent 60c9195 commit 898672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfl-workspace/tf_cnn_histology/src/tf_cnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def create_model(self,

model = tf.keras.models.Model(inputs=[inputs], outputs=[predict])

self.optimizer = tf.keras.optimizers.Adam()
self.optimizer = tf.keras.optimizers.legacy.Adam()

model.compile(
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
Expand Down

0 comments on commit 898672b

Please sign in to comment.