From 7fe21602f6b767c64e058ab99ad71a1db6bd5d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9B=8A?= Date: Mon, 27 Feb 2017 14:43:43 -0800 Subject: [PATCH] Rename config.py into common.py --- python/paddle/v2/dataset/cifar.py | 2 +- python/paddle/v2/dataset/{config.py => common.py} | 0 python/paddle/v2/dataset/mnist.py | 2 +- python/paddle/v2/dataset/movielens.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename python/paddle/v2/dataset/{config.py => common.py} (100%) diff --git a/python/paddle/v2/dataset/cifar.py b/python/paddle/v2/dataset/cifar.py index 2ac71c6ef..accb32f11 100644 --- a/python/paddle/v2/dataset/cifar.py +++ b/python/paddle/v2/dataset/cifar.py @@ -11,7 +11,7 @@ import tarfile import numpy -from config import download +from common import download __all__ = [ 'cifar_100_train_creator', 'cifar_100_test_creator', 'train_creator', diff --git a/python/paddle/v2/dataset/config.py b/python/paddle/v2/dataset/common.py similarity index 100% rename from python/paddle/v2/dataset/config.py rename to python/paddle/v2/dataset/common.py diff --git a/python/paddle/v2/dataset/mnist.py b/python/paddle/v2/dataset/mnist.py index db84f37aa..2f195bfb9 100644 --- a/python/paddle/v2/dataset/mnist.py +++ b/python/paddle/v2/dataset/mnist.py @@ -1,7 +1,7 @@ import sklearn.datasets.mldata import sklearn.model_selection import numpy -from config import DATA_HOME +from common import DATA_HOME __all__ = ['train_creator', 'test_creator'] diff --git a/python/paddle/v2/dataset/movielens.py b/python/paddle/v2/dataset/movielens.py index 314329e91..dcffcff2f 100644 --- a/python/paddle/v2/dataset/movielens.py +++ b/python/paddle/v2/dataset/movielens.py @@ -1,5 +1,5 @@ import zipfile -from config import download +from common import download import re import random import functools -- GitLab