Skip to content

Conversation

kaixih
Copy link
Contributor

@kaixih kaixih commented Dec 18, 2019

As in the Keras compile/fit mode (https://github.com/tensorflow/models/blob/master/official/vision/image_classification/resnet_imagenet_main.py#L62), this PR enables the persistent CUDNN batch norm by default for better performance in CTL ResNet50.

fyi @nluehr

'mixed_bfloat16')
tf.compat.v2.keras.mixed_precision.experimental.set_policy(policy)

common.set_cudnn_batchnorm_mode()
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment above saying this only affect GPU?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Done. PTAL.

@saberkun saberkun added the ready to pull ready to pull (create internal pr review and merge automatically) label Dec 31, 2019
tf-models-copybara-bot pushed a commit that referenced this pull request Jan 2, 2020
@tf-models-copybara-bot tf-models-copybara-bot merged commit 0d1fb4c into tensorflow:master Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes ready to pull ready to pull (create internal pr review and merge automatically)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants