Update array_ops.py (#12411)
* Update array_ops.py -Space import statements according to PEP8 -Remove unnecessary import statements * Nit: preserve empty line
This commit is contained in:
parent
01456a40cd
commit
d4ce3b4681
@ -82,6 +82,7 @@ from __future__ import division
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from tensorflow.python.eager import context
|
from tensorflow.python.eager import context
|
||||||
@ -100,7 +101,6 @@ from tensorflow.python.ops import gen_math_ops
|
|||||||
# pylint: disable=wildcard-import
|
# pylint: disable=wildcard-import
|
||||||
from tensorflow.python.ops.gen_array_ops import *
|
from tensorflow.python.ops.gen_array_ops import *
|
||||||
from tensorflow.python.util import deprecation
|
from tensorflow.python.util import deprecation
|
||||||
from tensorflow.python.util.deprecation import deprecated
|
|
||||||
# pylint: enable=wildcard-import
|
# pylint: enable=wildcard-import
|
||||||
|
|
||||||
# Used for slicing to specify a new 1 size dimension
|
# Used for slicing to specify a new 1 size dimension
|
||||||
@ -192,8 +192,10 @@ def expand_dims(input, axis=None, name=None, dim=None):
|
|||||||
|
|
||||||
# Aliases for some automatically-generated names.
|
# Aliases for some automatically-generated names.
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
@deprecated("2016-11-30", "This op will be removed after the deprecation date. "
|
@deprecation.deprecated(
|
||||||
"Please switch to tf.setdiff1d().")
|
"2016-11-30",
|
||||||
|
"This op will be removed after the deprecation date. "
|
||||||
|
"Please switch to tf.setdiff1d().")
|
||||||
def listdiff(x, y, out_idx=None, name=None):
|
def listdiff(x, y, out_idx=None, name=None):
|
||||||
return gen_array_ops._list_diff(x, y, out_idx, name)
|
return gen_array_ops._list_diff(x, y, out_idx, name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user