From f4999e4f390e757af6df952e2f66e2e45283a8a1 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Fri, 17 Aug 2018 16:29:18 +0800 Subject: [PATCH] Remove unused six and missing six import --- python/paddle/dataset/mnist.py | 1 - python/paddle/fluid/tests/unittests/dist_se_resnext.py | 1 - python/paddle/fluid/transpiler/distribute_transpiler.py | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/dataset/mnist.py b/python/paddle/dataset/mnist.py index 3038747bf..38addd0cf 100644 --- a/python/paddle/dataset/mnist.py +++ b/python/paddle/dataset/mnist.py @@ -24,7 +24,6 @@ import paddle.dataset.common import subprocess import numpy import platform -import six import tempfile from six.moves import range __all__ = ['train', 'test', 'convert'] diff --git a/python/paddle/fluid/tests/unittests/dist_se_resnext.py b/python/paddle/fluid/tests/unittests/dist_se_resnext.py index b0ee6ff9f..1307ba4e4 100644 --- a/python/paddle/fluid/tests/unittests/dist_se_resnext.py +++ b/python/paddle/fluid/tests/unittests/dist_se_resnext.py @@ -16,7 +16,6 @@ from __future__ import print_function import numpy as np import argparse -import six import time import math diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 49d1b6c7b..0afd46d35 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -34,6 +34,7 @@ import math import random import numpy as np import collections +import six from .ps_dispatcher import RoundRobin, HashName, PSDispatcher from .. import core, framework -- GitLab