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

Remove deprecated calls to inspect.getargspec #1324

Merged
merged 1 commit into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensor2tensor/utils/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from __future__ import division
from __future__ import print_function

import inspect
from tensor2tensor.utils import expert_utils as eu
import tensorflow as tf
from tensorflow.python.util import tf_inspect as inspect


def data_parallelism_from_flags(daisy_chain_variables=True, all_workers=False):
Expand Down
2 changes: 1 addition & 1 deletion tensor2tensor/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from __future__ import division
from __future__ import print_function

import inspect
import numpy as np
import six

Expand All @@ -29,6 +28,7 @@
import tensorflow as tf

from tensorflow.contrib.eager.python import tfe
from tensorflow.python.util import tf_inspect as inspect


class Metrics(object):
Expand Down
2 changes: 1 addition & 1 deletion tensor2tensor/utils/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class MyModel(T2TModel):
from __future__ import division
from __future__ import print_function

import inspect
from tensor2tensor.utils import misc_utils
import tensorflow as tf
from tensorflow.python.util import tf_inspect as inspect

_ATTACKS = {}
_ATTACK_PARAMS = {}
Expand Down
2 changes: 1 addition & 1 deletion tensor2tensor/utils/t2t_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import contextlib
import copy
import functools
import inspect
import math
import os
import time
Expand All @@ -48,6 +47,7 @@
from tensorflow.python.layers import base
from tensorflow.python.ops import inplace_ops
from tensorflow.python.ops import variable_scope
from tensorflow.python.util import tf_inspect as inspect

_no_problem_err_str = (
"The default implementation of %s requires that the "
Expand Down