Skip to content

Commit ae62fcd

Browse files
will-cromarallenwang28
authored and
allenwang28
committed
Use tf.compat.v1 in cloud_tpu/models/common.
PiperOrigin-RevId: 272715691
1 parent 82a7722 commit ae62fcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/common/inference_warmup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import io
2323
import os
2424
import numpy as np
25-
import tensorflow as tf
25+
import tensorflow.compat.v1 as tf
2626

2727

2828
def _encode_image(image_array, fmt):

models/common/tpu_profiler_hook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import subprocess
2323

24-
import tensorflow as tf
24+
import tensorflow.compat.v1 as tf
2525

2626

2727
class TPUProfilerHook(tf.train.SessionRunHook):

0 commit comments

Comments
 (0)