Skip to content

Commit 62bf6fc

Browse files
Merge pull request #7957 from houtoms:ctl_add_persist_BN
PiperOrigin-RevId: 287856865
2 parents 6fb5646 + 0d1fb4c commit 62bf6fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

official/vision/image_classification/resnet_ctl_imagenet_main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ def run(flags_obj):
199199
'mixed_bfloat16')
200200
tf.compat.v2.keras.mixed_precision.experimental.set_policy(policy)
201201

202+
# This only affects GPU.
203+
common.set_cudnn_batchnorm_mode()
204+
202205
# TODO(anj-s): Set data_format without using Keras.
203206
data_format = flags_obj.data_format
204207
if data_format is None:

0 commit comments

Comments
 (0)