Remove duplicate imports in several places
authorYong Tang <yong.tang.github@outlook.com>
Tue, 17 Apr 2018 21:33:27 +0000 (21:33 +0000)
committerYong Tang <yong.tang.github@outlook.com>
Tue, 17 Apr 2018 21:45:07 +0000 (21:45 +0000)
Wrote a script to scan throught the python files in the repo,
and found the remaining duplicate imports in some python files like:
```
 from tensorflow.python.ops import random_ops
-from tensorflow.python.ops import random_ops
 from tensorflow.python.util.deprecation import deprecated
```
This fix removed all of them for duplicate imports.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
tensorflow/python/ops/init_ops.py

index 5ded3f7..8bf6c7f 100644 (file)
@@ -42,7 +42,6 @@ from tensorflow.python.ops import array_ops
 from tensorflow.python.ops import linalg_ops
 from tensorflow.python.ops import math_ops
 from tensorflow.python.ops import random_ops
-from tensorflow.python.ops import random_ops
 from tensorflow.python.util.deprecation import deprecated
 from tensorflow.python.util.tf_export import tf_export