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

[r2.2:Cherrypick] Eliminate tf.where call in updating running mean and average for batch norm in Keras. This unlocks the improvements promised by fusing updates into the CPU and GPU kernels. #37373

Merged
merged 1 commit into from Mar 6, 2020

Conversation

geetachavan1
Copy link
Contributor

Results for ResNet50 /w batch size 32 in eager mode on GTX 1080:

Before: 85 images/s (fp32), 81 images/s (fp16)
After: 101 images/s (fp32), 99 images/s (fp16)
PiperOrigin-RevId: 298927568
Change-Id: I2941bff5d19c7fdccad78bbb9c5df2fdcd2fc36a

…h norm in Keras. This unlocks the improvements promised by fusing updates into the CPU and GPU kernels.

Results for ResNet50 /w batch size 32 in eager mode on GTX 1080:

Before:  85 images/s (fp32),   81 images/s (fp16)
After:  101 images/s (fp32),   99 images/s (fp16)
PiperOrigin-RevId: 298927568
Change-Id: I2941bff5d19c7fdccad78bbb9c5df2fdcd2fc36a
@goldiegadde goldiegadde merged commit cb73044 into tensorflow:r2.2 Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants