Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update reproducibility_recipes.py #1941

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Frightera
Copy link
Contributor

@Frightera Frightera commented Oct 1, 2024

Following the conversions from:

tensorflow/tensorflow#69417 (comment)

Not every operation is supported when determinism is enabled. If that guide is using Keras 3, XLA should not be used, as in Keras 2.

Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Please fix the style issues and add the generated md and ipynb files.

@@ -151,8 +151,10 @@ def train_model(train_data: tf.data.Dataset, test_data: tf.data.Dataset) -> dict
)

model.compile(
optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"]
optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"], jit_compile = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove spaces around = and keep line under 80 chars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants