Skip to content

Commit 6ec6cc8

Browse files
lgeigerkpe
authored andcommitted
internal merge of PR tensorflow#1324
PiperOrigin-RevId: 227888281
1 parent 8cefe42 commit 6ec6cc8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tensor2tensor/utils/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from __future__ import division
1919
from __future__ import print_function
2020

21-
import inspect
2221
from tensor2tensor.utils import expert_utils as eu
2322
import tensorflow as tf
23+
from tensorflow.python.util import tf_inspect as inspect
2424

2525

2626
def data_parallelism_from_flags(daisy_chain_variables=True, all_workers=False):

tensor2tensor/utils/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from __future__ import division
1919
from __future__ import print_function
2020

21-
import inspect
2221
import numpy as np
2322
import six
2423

@@ -29,6 +28,7 @@
2928
import tensorflow as tf
3029

3130
from tensorflow.contrib.eager.python import tfe
31+
from tensorflow.python.util import tf_inspect as inspect
3232

3333

3434
class Metrics(object):

tensor2tensor/utils/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class MyModel(T2TModel):
4444
from __future__ import division
4545
from __future__ import print_function
4646

47-
import inspect
4847
from tensor2tensor.utils import misc_utils
4948
import tensorflow as tf
49+
from tensorflow.python.util import tf_inspect as inspect
5050

5151
_ATTACKS = {}
5252
_ATTACK_PARAMS = {}

tensor2tensor/utils/t2t_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import contextlib
2323
import copy
2424
import functools
25-
import inspect
2625
import math
2726
import os
2827
import time
@@ -48,6 +47,7 @@
4847
from tensorflow.python.layers import base
4948
from tensorflow.python.ops import inplace_ops
5049
from tensorflow.python.ops import variable_scope
50+
from tensorflow.python.util import tf_inspect as inspect
5151

5252
_no_problem_err_str = (
5353
"The default implementation of %s requires that the "

0 commit comments

Comments
 (0)