Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit e587d4c

Browse files
hsm207Copybara-Service
authored and
Copybara-Service
committed
internal merge of PR #1329
PiperOrigin-RevId: 227883955
1 parent 3e483ad commit e587d4c

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
2122
from tensor2tensor.utils import expert_utils as eu
2223
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,6 +18,7 @@
1818
from __future__ import division
1919
from __future__ import print_function
2020

21+
import inspect
2122
import numpy as np
2223
import six
2324

@@ -28,7 +29,6 @@
2829
import tensorflow as tf
2930

3031
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
4748
from tensor2tensor.utils import misc_utils
4849
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,6 +22,7 @@
2222
import contextlib
2323
import copy
2424
import functools
25+
import inspect
2526
import math
2627
import os
2728
import time
@@ -47,7 +48,6 @@
4748
from tensorflow.python.layers import base
4849
from tensorflow.python.ops import inplace_ops
4950
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)