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 freezable_sync_batch_norm.py #11209

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

Conversation

ZoeyZiyunWang
Copy link

@ZoeyZiyunWang ZoeyZiyunWang commented May 22, 2024

This code is not compatible with the newest version of Tensorflow (2.16.1). Therefore I Replace the line: "class FreezableSyncBatchNorm(tf.keras.layers.experimental.SyncBatchNormalization):" With:
"class FreezableSyncBatchNorm(tf.keras.layers.BatchNormalization):" to make it compatible with the newest Tenserflow version (2.16.1).

Description

📝 Please include a summary of the change.

  • Please also include relevant motivation and context.
  • List any dependencies that are required for this change.

Type of change

For a new feature or function, please create an issue first to discuss it
with us before submitting a pull request.

Note: Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update
  • TensorFlow 2 migration
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • A new research paper code implementation
  • Other (Specify)

Tests

📝 Please describe the tests that you ran to verify your changes.

  • Provide instructions so we can reproduce.
  • Please also list any relevant details for your test configuration.

Test Configuration:

Checklist

This code is not compatibel with the newest version of Tensorflow (2.16.1). Therefore I Replace the line:
"class FreezableSyncBatchNorm(tf.keras.layers.experimental.SyncBatchNormalization):"
With:
"class FreezableSyncBatchNorm(tf.keras.layers.BatchNormalization):" to make it compatible with the newest Tenserflow version (2.16.1).
@ZoeyZiyunWang ZoeyZiyunWang requested a review from jch1 as a code owner May 22, 2024 12:46
Copy link

google-cla bot commented May 22, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@laxmareddyp laxmareddyp added the models:research models that come under research directory label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models:research models that come under research directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants