File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
from __future__ import division
19
19
from __future__ import print_function
20
20
21
- import inspect
22
21
from tensor2tensor .utils import expert_utils as eu
23
22
import tensorflow as tf
23
+ from tensorflow .python .util import tf_inspect as inspect
24
24
25
25
26
26
def data_parallelism_from_flags (daisy_chain_variables = True , all_workers = False ):
Original file line number Diff line number Diff line change 18
18
from __future__ import division
19
19
from __future__ import print_function
20
20
21
- import inspect
22
21
import numpy as np
23
22
import six
24
23
29
28
import tensorflow as tf
30
29
31
30
from tensorflow .contrib .eager .python import tfe
31
+ from tensorflow .python .util import tf_inspect as inspect
32
32
33
33
34
34
class Metrics (object ):
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ class MyModel(T2TModel):
44
44
from __future__ import division
45
45
from __future__ import print_function
46
46
47
- import inspect
48
47
from tensor2tensor .utils import misc_utils
49
48
import tensorflow as tf
49
+ from tensorflow .python .util import tf_inspect as inspect
50
50
51
51
_ATTACKS = {}
52
52
_ATTACK_PARAMS = {}
Original file line number Diff line number Diff line change 22
22
import contextlib
23
23
import copy
24
24
import functools
25
- import inspect
26
25
import math
27
26
import os
28
27
import time
48
47
from tensorflow .python .layers import base
49
48
from tensorflow .python .ops import inplace_ops
50
49
from tensorflow .python .ops import variable_scope
50
+ from tensorflow .python .util import tf_inspect as inspect
51
51
52
52
_no_problem_err_str = (
53
53
"The default implementation of %s requires that the "
You can’t perform that action at this time.
0 commit comments